aboutsummaryrefslogtreecommitdiff
path: root/.themes/classic/source/_layouts
diff options
context:
space:
mode:
authorBrandon Mathis <brandon@imathis.com>2011-07-21 23:50:32 -0400
committerBrandon Mathis <brandon@imathis.com>2011-07-22 00:00:18 -0400
commit39d56bc98834b09fc6939fd27bde8848efbb251d (patch)
tree404e6d12464884a763949215bb66081c74cf56c9 /.themes/classic/source/_layouts
parent44e1351fc71eaef7aefdc168dc9bc15b20d4bda4 (diff)
downloadmy_new_personal_website-39d56bc98834b09fc6939fd27bde8848efbb251d.tar.xz
my_new_personal_website-39d56bc98834b09fc6939fd27bde8848efbb251d.zip
Finally a nice solution for mapping relative urls
Diffstat (limited to '.themes/classic/source/_layouts')
-rw-r--r--.themes/classic/source/_layouts/default.html3
-rw-r--r--.themes/classic/source/_layouts/page.html2
2 files changed, 3 insertions, 2 deletions
diff --git a/.themes/classic/source/_layouts/default.html b/.themes/classic/source/_layouts/default.html
index fdb60ded..f3c24005 100644
--- a/.themes/classic/source/_layouts/default.html
+++ b/.themes/classic/source/_layouts/default.html
@@ -1,10 +1,11 @@
+{% capture root_url %}{{ site.root | strip_slash }}{% endcapture %}
{% include head.html %}
<body {% if page.body_id %} id="{{ page.body_id }}" {% endif %} {% if page.sidebar == false %} class="no-sidebar" {% endif %}>
<header>{% include header.html %}</header>
<nav>{% include navigation.html %}</nav>
<div id="main">
<div id="content">
- {{ content }}
+ {{ content | expand_urls: root_url | smart_quotes }}
{% unless page.sidebar == false %}
<aside role=sidebar>{% include sidebar.html %}</aside>
{% endunless %}
diff --git a/.themes/classic/source/_layouts/page.html b/.themes/classic/source/_layouts/page.html
index 5749b4de..a2fc41ed 100644
--- a/.themes/classic/source/_layouts/page.html
+++ b/.themes/classic/source/_layouts/page.html
@@ -8,7 +8,7 @@ layout: default
<h1 class="entry-title">{{ page.title | titlecase }}</h1>
{% if page.date %}<p class="meta">{% include post/date.html %}</p>{% endif %}
</header>
- {{ content | full_urls: site.root | smart_quotes }}
+ {{ content }}
{% unless page.footer == false %}
<footer>
{% if page.date %}<p class="meta">{% include post/date.html %}</p>{% endif %}