home
·
contact
·
privacy
projects
/
redo-blog
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
611d676
)
Add home/index link to article pages.
author
Christian Heller
<c.heller@plomlompom.de>
Mon, 2 Jan 2017 03:30:35 +0000
(
04:30
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Mon, 2 Jan 2017 03:30:35 +0000
(
04:30
+0100)
processor/metadata/article.tmpl.do
patch
|
blob
|
history
test/test_files/bar baz.html
patch
|
blob
|
history
test/test_files/foo.html
patch
|
blob
|
history
test/test_files/test.html
patch
|
blob
|
history
diff --git
a/processor/metadata/article.tmpl.do
b/processor/metadata/article.tmpl.do
index 7878a3ef6adb1b5e463980acd5f1dfe6f5f8d1ac..5cf9b3c0a8c7eb9059c0cbb3180d91f8e4c02475 100644
(file)
--- 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>
<title>%BLOG_TITLE% – %ARTICLE_TITLE_ESCAPED%</title>
</head>
<body>
+<a href="index.html">%BLOG_TITLE%</a>
<h1>%ARTICLE_TITLE_HTML%</h1>
<section>
%BODY%
<h1>%ARTICLE_TITLE_HTML%</h1>
<section>
%BODY%
diff --git
a/test/test_files/bar baz.html
b/test/test_files/bar baz.html
index 442f9ac74388738bb8df8a78b4d512ae110de6b0..f2321f964cd50e6a5089200b361ea596d6107639 100644
(file)
--- 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>
<title>Yet another blog – foo</title>
</head>
<body>
+<a href="index.html">Yet another blog</a>
<h1>foo</h1>
<section>
<p>bar</p>
<h1>foo</h1>
<section>
<p>bar</p>
diff --git
a/test/test_files/foo.html
b/test/test_files/foo.html
index dd25b702183c8d115a3516eff446be82411a70a1..61bb9395ca8a176101bd33834291881ef7b312bf 100644
(file)
--- 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: &<>"' %BODY%</title>
</head>
<body>
<title>Yet another blog – a title with some nasty characters: &<>"' %BODY%</title>
</head>
<body>
+<a href="index.html">Yet another blog</a>
<h1>a title with some nasty characters: &<>"' %BODY%</h1>
<section>
<p>this text contains some special characters: /;%'"><&äöüß</p>
<h1>a title with some nasty characters: &<>"' %BODY%</h1>
<section>
<p>this text contains some special characters: /;%'"><&äöüß</p>
diff --git
a/test/test_files/test.html
b/test/test_files/test.html
index 565355d34971942d0618dde487737528d0f8aa80..5915dd7202eea6a8dbf1b681f540e883c4505e48 100644
(file)
--- 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>
<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>
<h1>foo <em>bar</em> <strong>baz</strong></h1>
<section>
<p>foo</p>