Skip to content

bellycard/middleman-blog-authors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Middleman Blog Authors

Gemnasium

Installation

Add the middleman-blog-authors gem to you Gemfile.

gem "middleman-blog-authors"

Configuration

Activate this extension in your config.rb file

activate :authors

In your blog posts, add authors to the metadata:

---
title: Building Middleman Extensions
date: 2013-07-17
authors: Darby Frey
---

Create a template for the author page. If this is not your default template, put it in source/layouts:

source/layouts/author.html.haml

---
title: #{author.name}
pageable: true
per_page: 10
---

<h1><%= author.name %></h1>

<ul>
  <% page_articles.each do |article| %>
    <li><%= link_to article.title, article %></li>
  <% end %>
</ul>

License

MIT

About

A Middleman extension to add author profile pages to a blog

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages