summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/directory.html.twig1
-rw-r--r--templates/partials/header.html.twig12
2 files changed, 9 insertions, 4 deletions
diff --git a/templates/directory.html.twig b/templates/directory.html.twig
index bdb3a5c..cc02e7f 100644
--- a/templates/directory.html.twig
+++ b/templates/directory.html.twig
@@ -13,7 +13,6 @@
{% include 'partials/header.html.twig' %}
<div class="center">
<div class="content">
- <h1>Blog pages</h1>
{{ page.content|raw }}
{% include 'partials/list.html.twig' %}
{% include 'partials/navigation.html.twig' %}
diff --git a/templates/partials/header.html.twig b/templates/partials/header.html.twig
index 4229a92..0c02cfe 100644
--- a/templates/partials/header.html.twig
+++ b/templates/partials/header.html.twig
@@ -1,11 +1,17 @@
<div class="header">
{% if page.header.icon %}
- <span class=icon>{{page.header.icon}}</span>
+ <span class=icon>{{page.header.icon}}</span>
{% else %}
- <span class=icon>web</span>
+ <span class=icon>web</span>
{% endif %}
{% if page.url != "/" %}
- <a href="/" style="color:white;">{{site.title|e}}</a>
+ <a href="/" style="color:white;">{{site.title|e}}</a>
{% endif %}
+ {% if page.parent.url != "/" %}
+ <a href="{{ page.parent.url }}">
+ <span class="icon" style="color: white;">close</span>
+ </a>
+ {% else %}
<span class="icon" style="color:transparent;">web</span>
+ {% endif %}
</div> \ No newline at end of file