home · contact · privacy
Improve templates.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 4 Jan 2017 13:01:44 +0000 (14:01 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 4 Jan 2017 13:01:44 +0000 (14:01 +0100)
processor/feed.xml.do
processor/metadata/article.tmpl.do
processor/metadata/default.feed_snippet.do
processor/metadata/index.tmpl.do

index eed86ed353a327063311d59b7eb5aebe01e09910..2b246a9a2745e7f4335f78bc59a90f66642f3d00 100644 (file)
@@ -27,7 +27,7 @@ cat << EOF
 <?xml version="1.0" encoding="utf-8"?>
 <feed xmlns="http://www.w3.org/2005/Atom">
 EOF
-printf "<link href=\"%s\" />\n" "$basepath"
+printf "<link href=\"%s\" rel=\"alternate\" type=\"text/html\" />\n" "$basepath"
 printf "<link href=\"%sfeed.xml\" rel=\"self\" />\n" "$basepath"
 printf "<title type=\"html\">%s</title>\n" "$title"
 printf "<author><name>%s</name></author>\n" "$author"
index e945d5b88819a63e7dc5427b742ce6c00923b42d..8b7e0dc86080e6536dafbad684ffab2c90c7fb46 100644 (file)
@@ -3,8 +3,6 @@
 if [ ! -f "$1" ]; then
 cat << EOF
 <!DOCTYPE html>
-<html>
-<head>
 <meta charset="UTF-8">
 <style type="text/css">
 h1 { font-size: 2em; }
@@ -17,8 +15,6 @@ header h1 { margin-bottom: 0.1em; }
 header p { margin: 0; }
 </style>
 <title>%BLOG_TITLE% – %ARTICLE_TITLE_ESCAPED%</title>
-</head>
-<body>
 <a href="index.html">%BLOG_TITLE%</a>
 <article>
 <header>
@@ -27,7 +23,5 @@ header p { margin: 0; }
 </header>
 %BODY%
 </article>
-</body>
-</html>
 EOF
 fi
index 8dca59b68f3bc67bc816dc5ad858b020af87e9a9..872eacfe7a3120ccea73c7aacabacdbc23d45b88 100644 (file)
@@ -22,6 +22,6 @@ printf "<title type=\"html\">%s</title>\n" "$title"
 printf "<id>urn:uuid:%s</id>\n" "$uuid"
 printf "<updated>%s</updated>\n" "$lastmod_rfc3339"
 printf "<published>%s</published>\n" "$published_rfc3339"
-printf "<link href=\"%s%s\" />\n" "$(get_basepath)" "${html_file}"
+printf "<link href=\"%s%s\" rel=\"alternate\" type=\"text/html\" />\n" "$(get_basepath)" "${html_file}"
 printf "<content type=\"html\">\n%s\n</content>\n" "$body"
 printf "</entry>\n"
index 5befb4f20b7ffd066e80e00d9671d4c9dca895ae..67cebb209bb133c3ae0db3f46480ba554118b487 100644 (file)
@@ -3,22 +3,16 @@
 if [ ! -f "$1" ]; then
 cat << EOF
 <!DOCTYPE html>
-<html>
-<head>
 <meta charset="UTF-8">
 <style type="text/css">
 h1 { font-size: 2em; }
 </style>
 <link rel="alternate" type="application/rss+xml" title="atom feed" href="feed.xml" />
 <title>%BLOG_TITLE%</title>
-</head>
-<body>
 <h1>%BLOG_TITLE%</h1>
 <p><a href="feed.xml">feed</a></p>
 <ul>
 %INDEX%
 </ul>
-</body>
-</html>
 EOF
 fi