Fork me on GitHub

jekyll-mention-schema: Plugin that allows you to mention a co-author with Schema.org notation

I’m honored to bring you the first meta blog post. Since we’ll we sharing the source code of this blog with the world we thought it would be a nice idea to also write about said code here. Most features will be implemented as Jekyll plugins so you can easily submodule them in your own blogs. Today, I announce the first of those plugins.

jekyll-mention-schema is a very simple way to mention your co-authors. It will do this using Schema.org notation which means the output is easily parsed by machines (such as your favorite search engine).

The plugin depends on an array of authors in your global site config like this:

authors:
  user1:
    display_name: 1User
    full_name: User von Wanningston
    gplus_id: 118082699456363103031
    position: Senior VP of Jekyll plugins
  otherauth:
    display_name: Otter
    full_name: Othér Auteur
    gplus_id: 118082699456363103031
    position: Blagosphere Watcher

Then, you can mention a user like this: {% mention user1 %}, which will result in the following HTML output.

<span itemscope itemtype='http://schema.org/Person'>
	<meta itemprop='name' content='User von Wanningston' />
	<meta itemprop='jobTitle' content='Senior VP of Jekyll plugins' />
	<a href='https://plus.google.com/118082699456363103031' itemprop='url'>1User</a>
</span>

And so ends the very first meta post. The next one will be by (oh yes, I just totally mentioned Robbert using jekyll-mention-schema. Don’t believe me? Check the source of this page).

Google+