diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/base.html | 4 | ||||
| -rw-r--r-- | templates/page.html | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/templates/base.html b/templates/base.html index e4d358e..8c737df 100644 --- a/templates/base.html +++ b/templates/base.html @@ -100,7 +100,7 @@ {% if config.extra.header_nav %} <nav> {% for nav_item in config.extra.header_nav %} - <a href="{{ nav_item.url | safe }}">{{ nav_item.name }}</a> + <a href="{{ nav_item.url | safe }}" {% if nav_item.new_tab %}target="_blank" rel="noreferrer noopener"{% endif %}>{{ nav_item.name }}</a> {% endfor %} </nav> {% endif %} @@ -122,4 +122,4 @@ </div> </body> </html> -
\ No newline at end of file + diff --git a/templates/page.html b/templates/page.html index aab169f..35221dc 100644 --- a/templates/page.html +++ b/templates/page.html @@ -37,12 +37,16 @@ Table of contents {% for tag in page.taxonomies.tags %} <a href="/tags/{{ tag | slugify }}">#{{ tag }}</a> {% endfor %} +{% if page.taxonomies.categories %} {% for category in page.taxonomies.categories %} <a href="/categories/{{ category | slugify }}">+{{ category }}</a> {% endfor %} +{% endif %} +{% if page.taxonomies.contexts %} {% for context in page.taxonomies.contexts %} <a href="/contexts/{{ context | slugify }}">@{{ context }}</a> {% endfor %} {% endif %} +{% endif %} </p> {% endblock footer %}
\ No newline at end of file |
