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
This commit is contained in:
Brandon Mathis
2011-07-21 15:45:09 -04:00
parent 05e4b7951d
commit 44e1351fc7
4 changed files with 12 additions and 4 deletions

View File

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

View File

@ -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 | smart_quotes }}
{{ content | full_urls: site.root | smart_quotes }}
{% unless page.footer == false %}
<footer>
{% if page.date %}<p class="meta">{% include post/date.html %}</p>{% endif %}