Skip to content

Instantly share code, notes, and snippets.

@SirRawlins
Last active January 4, 2016 16:39
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 SirRawlins/8649152 to your computer and use it in GitHub Desktop.
Save SirRawlins/8649152 to your computer and use it in GitHub Desktop.
Adding authors to a Jekyll blog
---
# Layout.
layout: post
# Author.
author: robert_rawlins
---
# Author details.
robert_rawlins:
name: Robert Rawlins
web: http://twitter.com/sirrawlins
robin_geall:
name: Robin Geall
web: http://twitter.com/robingeall
<!-- Look the author details up from the site config. -->
{% assign author = site.data.authors[page.author] %}
<!-- Output author details if some exist. -->
{% if author %}
<span>
<!-- Personal Info. -->
Written by <a href="{{ author.web }}" target="_blank">{{ author.name }}</a>
</span>
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment