<?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"
if [ ! -f "$1" ]; then
cat << EOF
<!DOCTYPE html>
-<html>
-<head>
<meta charset="UTF-8">
<style type="text/css">
h1 { font-size: 2em; }
header p { margin: 0; }
</style>
<title>%BLOG_TITLE% – %ARTICLE_TITLE_ESCAPED%</title>
-</head>
-<body>
<a href="index.html">%BLOG_TITLE%</a>
<article>
<header>
</header>
%BODY%
</article>
-</body>
-</html>
EOF
fi
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"
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