Author Box is a simple Octopress plugin that could display more author information below every single post.
You can configure your authors information if there are multiple authors.
- Easily attach author info box with YAML.
- Use Gravatar image url as a author pic.
- Put the plugin file:
author_box.rb
intoplugins
folder.
- Put
author.yml
into your Octopress root path and add your author's information. - Put
author.html
intosource/_layouts
for rendering author box below your posts - Edit
_style.scss
to adjust the style of author box. - Add or change the
author: Your Name
to the metadata on a post. The author name should be exactly matched to one of authors with author.yml.
linyiru:
name: Lawrence Lin
twitter: linyiru
email: hi@linyiru.com
blog: https://blog.linyiru.com/
description: "Hello World!"
---
layout: post
title: "Octopress"
date: 2011-09-30 13:48
comments: true
categories: [octopress]
author: deduce
---
.octopress-authorbox {
border-top: 4px solid #333;
background-color: #eee;
.author-pic {
float: left;
margin: 8px;
}
.author-about {
float: left;
margin: 5px;
padding: 5px;
ul {
list-style: none;
li {
display: inline;
margin-left: 5px;
}
}
}
}
.octopress-authorbox:after {
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
- More easier setting of this plugin(maybe it would be a install script & git submodule as a octopress plugin)
- More posts of this author link and its generator
- Lawrence Yi-Ru Lin, @linyiru
Licensed under the MIT: www.opensource.org/licenses/mit-license.php