Finally a nice solution for mapping relative urls

This commit is contained in:
Brandon Mathis
2011-07-21 23:50:32 -04:00
parent 44e1351fc7
commit 39d56bc988
13 changed files with 38 additions and 29 deletions

View File

@ -1,7 +1,7 @@
{% unless page.no_header %}
<header>
{% if index %}
<h1 class="entry-title"><a href="{{ site.root }}{{ post.url }}">{{ post.title | titlecase }}</a></h1>
<h1 class="entry-title"><a href="{{ root_url }}{{ post.url }}">{{ post.title | titlecase }}</a></h1>
{% else %}
<h1 class="entry-title">{{ page.title | titlecase }}</h1>
{% endif %}
@ -11,10 +11,10 @@
</header>
{% endunless %}
{% if index %}
<div class="entry-content">{{ content | full_urls: site.root | exerpt | smart_quotes }}</div>
<div class="entry-content">{{ content | exerpt }}</div>
<footer>
<a rel="full-article" href="{{ site.root }}{{ post.url }}">Read on &rarr;</a>
<a rel="full-article" href="{{ root_url }}{{ post.url }}">Read on &rarr;</a>
</footer>
{% else %}
<div class="entry-content">{{ content | full_urls: site.root | smart_quotes }}</div>
<div class="entry-content">{{ content }}</div>
{% endif %}