Middleman-blog is a project mainly written in Ruby, it's free.
= middleman-blog
Create a blog with Middleman
== Features
== TODO
== Usage
Example: https://github.com/matt-hh/middleman-blog-example
Install
gem install middleman-blog
Additionally you need one of the following gems for your post templates: Kramdown, Maruku, RedCloth, BlueCloth, RDiscount ...
Create your project
mm-init your-middleman-project
Create config/blogs.yml with default values
blog: title: My Blog author: your name mail: your mail whatever: a value another-blog: title: My second Blog
Yes, you can define default values for more than one blog...
Create layout files:
blog_index.haml:
%h1= current_blog_value('title') = yield
blog_post.haml:
%h1= current_post_value('title') = yield
Activate feature in config.rb
require "middleman-blog" activate :blog_engine
page "/blog/index.html", :layout => :blog_index, :layout_engine => 'haml' page "/blog/*", :layout => :blog_post, :layout_engine => 'haml'
page "/another-blog/index.html", :blog_post => :blog_index, :layout_engine => 'haml' page "/another-blog/*", :blog_post => :blog_post, :layout_engine => 'haml'
Create directories in your source folder
mkdir blog mkdir my-second-blog
In these folders you can create your posts.
blog/my-first-post.html.md
My first blog post...
Important: 2 newlines between "----" and "My first..."
== Metadata
== Helper methods
=== Examples
Link to the next post
link_to next_post['title'], next_post['link']
List of 10 last posts
%ul
== Links