mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
Finally a nice solution for mapping relative urls
This commit is contained in:
@ -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 →</a>
|
||||
<a rel="full-article" href="{{ root_url }}{{ post.url }}">Read on →</a>
|
||||
</footer>
|
||||
{% else %}
|
||||
<div class="entry-content">{{ content | full_urls: site.root | smart_quotes }}</div>
|
||||
<div class="entry-content">{{ content }}</div>
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user