From 44e1351fc71eaef7aefdc168dc9bc15b20d4bda4 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Thu, 21 Jul 2011 15:45:09 -0400 Subject: 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 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to '.themes/classic') diff --git a/.themes/classic/source/_includes/article.html b/.themes/classic/source/_includes/article.html index 69bb5008..a25691f8 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 07dd050d..5749b4de 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 %}