From 44e1351fc71eaef7aefdc168dc9bc15b20d4bda4 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Thu, 21 Jul 2011 15:45:09 -0400 Subject: [PATCH] 1. Added condition to full_url filter to allow it to be used as a root_url appending filter for remapping root "/" urls when octopress is deployed to a subdirectory. Updated _includes/article and _layouts/page to use the filter 2. Added documentation for the include_code plugin --- .themes/classic/source/_includes/article.html | 4 ++-- .themes/classic/source/_layouts/page.html | 2 +- plugins/custom_filters.rb | 1 + plugins/include_code.rb | 9 ++++++++- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.themes/classic/source/_includes/article.html b/.themes/classic/source/_includes/article.html index 69bb500..a25691f 100644 --- a/.themes/classic/source/_includes/article.html +++ b/.themes/classic/source/_includes/article.html @@ -11,10 +11,10 @@ {% endunless %} {% if index %} -
{{ content | exerpt | smart_quotes }}
+
{{ content | full_urls: site.root | exerpt | smart_quotes }}
{% else %} -
{{ content | smart_quotes }}
+
{{ content | full_urls: site.root | smart_quotes }}
{% endif %} diff --git a/.themes/classic/source/_layouts/page.html b/.themes/classic/source/_layouts/page.html index 07dd050..5749b4d 100644 --- a/.themes/classic/source/_layouts/page.html +++ b/.themes/classic/source/_layouts/page.html @@ -8,7 +8,7 @@ layout: default

{{ page.title | titlecase }}

{% if page.date %}

{% include post/date.html %}

{% endif %} - {{ content | smart_quotes }} + {{ content | full_urls: site.root | smart_quotes }} {% unless page.footer == false %}