summaryrefslogtreecommitdiffstats
path: root/src/templates
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-10-15 10:45:58 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2014-10-15 18:40:45 +0100
commit965c9e67ef6f79b9cf72a01da03222a66d632569 (patch)
tree01de1b64ba61f01aa6f8c90c94392bc347ef8c7c /src/templates
parent7979369ccf314d72b83347e53ba6915f511c855e (diff)
downloadwebsite-965c9e67ef6f79b9cf72a01da03222a66d632569.tar.xz
templates use header for h1, Entry renamed to Page
also merge build_about and build_index
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 }}