generated from mmistakes/mm-github-pages-starter
-
Notifications
You must be signed in to change notification settings - Fork 14
Card elements
Philipp S. Sommer edited this page May 28, 2020
·
1 revision
Members and organizations are displayed with so-called cards. This element takes an info
parameter and can be included in any markdown element via
{% include card.html info=info %}
To create a card for the de-RSE organization, you would, for instance, write
{% include card.html info=site.data.committee.national_chapters.deRSE %}
The source template is defined by the file _includes/card.html, and defines
- A header (
info.name
) - An image (
info.avatar
) - Some auxiliary information (
info.long_name
,info.affiliation
,info.location
) - Social media buttons (
info.website
,info.email
,info.twitter
,info.internal
,info.github
) - Teams badges (one badge per team in
info.teams
)
The example above renders like
Everything but the header is optional.