summaryrefslogtreecommitdiffstats
path: root/src/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/journal.html5
-rw-r--r--src/templates/layout.html5
-rw-r--r--src/templates/page.html5
3 files changed, 5 insertions, 10 deletions
diff --git a/src/templates/journal.html b/src/templates/journal.html
index 0269d2e..9f301b1 100644
--- a/src/templates/journal.html
+++ b/src/templates/journal.html
@@ -1,11 +1,6 @@
{% extends 'layout.html' %}
{% block content %}
- <header>
-{% include 'nav.html' %}
- <h1>The lost journal</h1>
- </header>
-
{% for entry in entries %}
<article itemscope itemtype="http://schema.org/Article"
class="entry" id="entry:{{ entry.id }}">
diff --git a/src/templates/layout.html b/src/templates/layout.html
index 45ab99d..c91aa94 100644
--- a/src/templates/layout.html
+++ b/src/templates/layout.html
@@ -10,6 +10,11 @@
title="Johannes Löthberg <johannes@kyriasis.com>">
</head>
<body itemscope itemtype="http://schema.org/WebPage">
+<header>
+{% include 'nav.html' %}
+ <h1>{{ header }}</h1>
+</header>
+
{% block content %}{% endblock %}
<footer>
<div id="foot-left">
diff --git a/src/templates/page.html b/src/templates/page.html
index 9e0dddc..3c5d29a 100644
--- a/src/templates/page.html
+++ b/src/templates/page.html
@@ -1,11 +1,6 @@
{% extends 'layout.html' %}
{% block content %}
- <header>
-{% include 'nav.html' %}
- <h1>{{ page.title }}</h1>
- </header>
-
<article id="{{ page.article_id }}" class="botborder" itemprop="mainContentOfPage">
{{ page.body }}