From: Christian Heller <c.heller@plomlompom.de>
Date: Mon, 2 Jan 2017 03:30:35 +0000 (+0100)
Subject: Add home/index link to article pages.
X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7Bdb.prefix%7D%7D/condition_titles?a=commitdiff_plain;h=dd07631feb38e91824fdb81c7571f32ad56ed214;p=redo-blog

Add home/index link to article pages.
---

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>