From 669d534822712dd8f8a8dc4a9f8d4a5c0967a478 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Wed, 1 Aug 2012 11:51:13 -0700 Subject: [PATCH] add a blog to the site --- _config.yml | 1 + _layouts/main.html | 48 ++++++++++++++++++++++++++++------- _posts/2012-08-01-new-blog.md | 6 +++++ beets.css | 15 ++++++++--- blog/index.md | 22 ++++++++++++++++ 5 files changed, 79 insertions(+), 13 deletions(-) create mode 100644 _posts/2012-08-01-new-blog.md create mode 100644 blog/index.md diff --git a/_config.yml b/_config.yml index 677657189..bc76bfffe 100644 --- a/_config.yml +++ b/_config.yml @@ -2,3 +2,4 @@ markdown: rdiscount rdiscount: extensions: [smart] url: http://beets.radbox.org +permalink: /blog/:title.html diff --git a/_layouts/main.html b/_layouts/main.html index 5c52417cc..8a637e430 100644 --- a/_layouts/main.html +++ b/_layouts/main.html @@ -1,16 +1,25 @@ - beets: {{ page.shorttitle }} + + beets: + {% if page.shorttitle %} + {{ page.shorttitle }} + {% else %} + {{ page.title }} + {% endif %} + - - - + + + {% if page.section == 'main' %} {% endif %} + +