From dd07631feb38e91824fdb81c7571f32ad56ed214 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Mon, 2 Jan 2017 04:30:35 +0100
Subject: [PATCH] Add home/index link to article pages.

---
 processor/metadata/article.tmpl.do | 1 +
 test/test_files/bar baz.html       | 1 +
 test/test_files/foo.html           | 1 +
 test/test_files/test.html          | 1 +
 4 files changed, 4 insertions(+)

diff --git a/processor/metadata/article.tmpl.do b/processor/metadata/article.tmpl.do
index 7878a3e..5cf9b3c 100644
--- a/processor/metadata/article.tmpl.do
+++ b/processor/metadata/article.tmpl.do
@@ -8,6 +8,7 @@ cat << EOF
 <title>%BLOG_TITLE% – %ARTICLE_TITLE_ESCAPED%</title>
 </head>
 <body>
+<a href="index.html">%BLOG_TITLE%</a>
 <h1>%ARTICLE_TITLE_HTML%</h1>
 <section>
 %BODY%
diff --git a/test/test_files/bar baz.html b/test/test_files/bar baz.html
index 442f9ac..f2321f9 100644
--- a/test/test_files/bar baz.html	
+++ b/test/test_files/bar baz.html	
@@ -4,6 +4,7 @@
 <title>Yet another blog – foo</title>
 </head>
 <body>
+<a href="index.html">Yet another blog</a>
 <h1>foo</h1>
 <section>
 <p>bar</p>
diff --git a/test/test_files/foo.html b/test/test_files/foo.html
index dd25b70..61bb939 100644
--- a/test/test_files/foo.html
+++ b/test/test_files/foo.html
@@ -4,6 +4,7 @@
 <title>Yet another blog – a title with some nasty characters: &amp;&lt;&gt;&quot;&#x27; %BODY%</title>
 </head>
 <body>
+<a href="index.html">Yet another blog</a>
 <h1>a title with some nasty characters: &amp;&lt;&gt;&quot;' %BODY%</h1>
 <section>
 <p>this text contains some special characters: /;%'&quot;&gt;&lt;&amp;äöüß</p>
diff --git a/test/test_files/test.html b/test/test_files/test.html
index 565355d..5915dd7 100644
--- a/test/test_files/test.html
+++ b/test/test_files/test.html
@@ -4,6 +4,7 @@
 <title>Yet another blog – foo bar baz</title>
 </head>
 <body>
+<a href="index.html">Yet another blog</a>
 <h1>foo <em>bar</em> <strong>baz</strong></h1>
 <section>
 <p>foo</p>
-- 
2.30.2