From f81bdbc1a8e341d9d3fe1eba3b77beadfe59b3d6 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Sat, 16 Jul 2011 09:29:09 -0400 Subject: [PATCH] Added support and documentation for deploying to subdirectories (like with gh-pages) --- .themes/classic/plugins/category_generator.rb | 4 +++- .../classic/source/_includes/archive_post.html | 2 +- .themes/classic/source/_includes/article.html | 4 ++-- .../source/_includes/asides/pinboard.html | 2 +- .../source/_includes/asides/recent_posts.html | 2 +- .../source/_includes/asides/twitter.html | 2 +- .themes/classic/source/_includes/head.html | 10 +++++----- .themes/classic/source/_includes/header.html | 2 +- .../classic/source/_includes/navigation.html | 4 ++-- README.markdown | 17 +++++++++++++++++ _config.yml | 9 ++++++++- 11 files changed, 42 insertions(+), 16 deletions(-) diff --git a/.themes/classic/plugins/category_generator.rb b/.themes/classic/plugins/category_generator.rb index 8fd2668..c2e9a46 100644 --- a/.themes/classic/plugins/category_generator.rb +++ b/.themes/classic/plugins/category_generator.rb @@ -129,8 +129,10 @@ module Jekyll # Returns string # def category_links(categories) + dir = @context.registers[:site].config['category_dir'] + root_url = @context.registers[:site].config['root'] categories = categories.sort!.map do |item| - "#{item}" + "#{item}" end case categories.length diff --git a/.themes/classic/source/_includes/archive_post.html b/.themes/classic/source/_includes/archive_post.html index cd55c21..1e291c1 100644 --- a/.themes/classic/source/_includes/archive_post.html +++ b/.themes/classic/source/_includes/archive_post.html @@ -1,5 +1,5 @@ {% capture category %}{{ post.categories | size }}{% endcapture %} -

{{post.title}}

+

{{post.title}}

{% if category != '0' %}