Add base_url option

This commit is contained in:
Daniel Rudolf 2015-10-05 19:44:38 +02:00
parent 71dabd22eb
commit 64edcc6a1c
2 changed files with 2 additions and 2 deletions

View file

@ -1,3 +1,3 @@
title: Pico
description: A stupidly simple, blazing fast, flat file CMS.
base_url: http://phrozenbyte.github.io/Pico/

View file

@ -8,7 +8,7 @@
{% for nav in pages %}
{% if nav.nav > 0 %}
<li {% if nav.url == page.url %}class="active"{% endif %}>
<a href="{{ nav.url }}">{{ nav.title }}</a>
<a href="{{ site.base_url }}{{ nav.url }}">{{ nav.title }}</a>
</li>
{% endif %}
{% endfor %}