Last active
January 4, 2016 16:39
-
-
Save SirRawlins/8649152 to your computer and use it in GitHub Desktop.
Adding authors to a Jekyll blog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# Layout. | |
layout: post | |
# Author. | |
author: robert_rawlins | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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