0.0
No release in over 3 years
Low commit activity in last 3 years
A Jekyll plugin to manage author data from multiple sources.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.6
< 3.2.0, >= 3.0.0
~> 1.6
~> 10.0
~> 3.0
~> 0.7
 Project Readme

Jekyll Authors Plugin

A Jekyll plugin that manages all the author data from _config.yml and _data/authors.*

Build Status

Author information

A list of authors can be declared in _config.yml as an array in authors and/or in a Jekyll data file (ie _data/authors.yml or _data/authors.json).

Note: if an author slug is used in both lists (like benbalter in the examples below) it will keep the information from the _config.yml file and reject the _data/authors.* author data with the same slug.

Example _config.yml:

timezone: UTC

authors:
  garthdb:
    name: Garth Braithwaite
    uri: http://garthdb.com/
    email: garthdb@adobe.com
    twitter: garthdb
  benbalter:
    name: Ben Balter
    uri: http://ben.balter.com/
    email: ben.balter@github.com
    twitter: benbalter

Example _data/authors.yml:

pathawks:
  name: Pat Hawks
  uri: https://pathawks.com
  email: pat@pathawks.com
  twitter: pathawks
benbalter:
  name: The Ben Balter
  uri: http://ben.balter.com/
  email: ben.balter@github.com
  twitter: benbalter

The author information can then be referenced in a post by using the author slug.

For example if a post had the front matter:

---
title: "Super Great Post Title"
author: "benbalter"
---

The layout could use the author information from list:

{% if page.author.name and page.author.uri %}
  <a href="{{ page.author.uri }}">{{ page.author.name }}</a>
{% else %}
  {{ page.author }}
{% endif %}

It is recommended to check if properties needed are available and to fallback to the author if they are not.