Skip to content

Instantly share code, notes, and snippets.

@apokusin
Created December 12, 2013 03:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save apokusin/7922909 to your computer and use it in GitHub Desktop.
Save apokusin/7922909 to your computer and use it in GitHub Desktop.
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