aybabtme/brog — pull request #28 by uiri (2014-02-05 15:35:18+00:00)
Title: Pages

This is kind of messy but it works. The feature idea was basically to have some posts which are considered 'pages' and listed in the header of the blog so that they are linked to from everywhere. This way of implementing it avoids duplicating any code in posts.go and post_manager.go.

Since pages can have language just like posts can, every page needs to know about language. It might be a good idea to make some language middleware but the current way it is structured works.

Also, I will try to send pull requests as I finish work on a branch instead of bunching them up like this.