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 (parent:
57b9f8e
)
Improve templates.
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 4 Jan 2017 13:01:44 +0000
(14:01 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 4 Jan 2017 13:01:44 +0000
(14:01 +0100)
processor/feed.xml.do
patch
|
blob
|
history
processor/metadata/article.tmpl.do
patch
|
blob
|
history
processor/metadata/default.feed_snippet.do
patch
|
blob
|
history
processor/metadata/index.tmpl.do
patch
|
blob
|
history
diff --git
a/processor/feed.xml.do
b/processor/feed.xml.do
index eed86ed353a327063311d59b7eb5aebe01e09910..2b246a9a2745e7f4335f78bc59a90f66642f3d00 100644
(file)
--- a/
processor/feed.xml.do
+++ b/
processor/feed.xml.do
@@
-27,7
+27,7
@@
cat << EOF
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
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"
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"
diff --git
a/processor/metadata/article.tmpl.do
b/processor/metadata/article.tmpl.do
index e945d5b88819a63e7dc5427b742ce6c00923b42d..8b7e0dc86080e6536dafbad684ffab2c90c7fb46 100644
(file)
--- a/
processor/metadata/article.tmpl.do
+++ b/
processor/metadata/article.tmpl.do
@@
-3,8
+3,6
@@
if [ ! -f "$1" ]; then
cat << EOF
<!DOCTYPE html>
if [ ! -f "$1" ]; then
cat << EOF
<!DOCTYPE html>
-<html>
-<head>
<meta charset="UTF-8">
<style type="text/css">
h1 { font-size: 2em; }
<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>
header p { margin: 0; }
</style>
<title>%BLOG_TITLE% – %ARTICLE_TITLE_ESCAPED%</title>
-</head>
-<body>
<a href="index.html">%BLOG_TITLE%</a>
<article>
<header>
<a href="index.html">%BLOG_TITLE%</a>
<article>
<header>
@@
-27,7
+23,5
@@
header p { margin: 0; }
</header>
%BODY%
</article>
</header>
%BODY%
</article>
-</body>
-</html>
EOF
fi
EOF
fi
diff --git
a/processor/metadata/default.feed_snippet.do
b/processor/metadata/default.feed_snippet.do
index 8dca59b68f3bc67bc816dc5ad858b020af87e9a9..872eacfe7a3120ccea73c7aacabacdbc23d45b88 100644
(file)
--- a/
processor/metadata/default.feed_snippet.do
+++ b/
processor/metadata/default.feed_snippet.do
@@
-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 "<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"
printf "<content type=\"html\">\n%s\n</content>\n" "$body"
printf "</entry>\n"
diff --git
a/processor/metadata/index.tmpl.do
b/processor/metadata/index.tmpl.do
index 5befb4f20b7ffd066e80e00d9671d4c9dca895ae..67cebb209bb133c3ae0db3f46480ba554118b487 100644
(file)
--- a/
processor/metadata/index.tmpl.do
+++ b/
processor/metadata/index.tmpl.do
@@
-3,22
+3,16
@@
if [ ! -f "$1" ]; then
cat << EOF
<!DOCTYPE html>
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>
<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>
<h1>%BLOG_TITLE%</h1>
<p><a href="feed.xml">feed</a></p>
<ul>
%INDEX%
</ul>
-</body>
-</html>
EOF
fi
EOF
fi