Created
February 15, 2012 08:59
-
-
Save ravasthi/1834570 to your computer and use it in GitHub Desktop.
Multiple authors on Jekyll
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
authors: | |
hanzou: | |
name: Hanzou Hattori | |
display_name: Hanzou | |
gravatar: c66919cb194f96c696c1da0c47354a6a | |
email: [email protected] | |
web: http://company.com | |
twitter: company | |
github: hhattori | |
jorgen: | |
name: Jörgen Mortensen | |
display_name: Jörgen | |
gravatar: 12e480a364a5c19214f99b4dfe9a11d5 | |
email: [email protected] | |
web: http://company.com | |
twitter: company | |
github: jorgenm |
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
{% assign author = site.authors[page.author] %} | |
<article class="entry"> | |
<header> | |
<p class="date"> | |
<span class="month">{{ page.date | date: '%b' }}</span> | |
<span class="day">{{ page.date | date: '%d' }}</span> | |
<span class="year">{{ page.date | date: '%Y' }}</span> | |
</p> | |
<h1>{{ page.title }}</h1> | |
<p class="byline"> | |
by {{ author.display_name }} | |
</p> <!-- /.byline --> | |
</header> | |
… | |
</article> |
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: post | |
title: "Migrating from Tumblr to Jekyll" | |
author: jorgen | |
tags: [ Tumblr, Jekyll, tutorial ] | |
css_classes: [ permalink ] | |
--- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For those who don't want to make author pages manually, or need pagination for the author pages, I made a plugin recently. Please check out
jekyll-auto-authors