Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Basic author via global data
<!-- Get the appropriate author object based on the `page.author` variable, specified in your Front-matter -->
{% assign author = site.data.authors[page.author] %}
<div class="author">
<div class="image">
<img src="{{ author.img }}" alt="{{ author.name }}" width="50" height="50">
</div>
<div class="author_info">
<span class="name">{{ author.name }}</span>
<span class="date">{{ page.date | date: '%B %d, %Y' }}</span>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.