various enhancements, including valid atom and rss feeds
[~bandali/bndl.org] / header.html
index 3a14408..9371905 100644 (file)
@@ -3,9 +3,9 @@ ifdef(`__slug',,`define(__slug, _get(`notes', __id))')dnl
 ifdef(`__feed_atom',
 `<entry xml:base="https://bndl.org">
 <author><name>bandali</name></author>
-<id>tag:bndl.org,atom,notes:__slug</id>
+<id>tag:bndl.org,2020:notes.atom:__slug</id>
 <published>__pub</published>
-<updated>__upd</updated>
+ifdef(`__upd',`<updated>__upd</updated>',`<updated>__pub</updated>')
 <link href="https://bndl.org/__slug" rel="alternate" type="text/html"/>
 <title>__title</title>
 <content type="html">',
@@ -13,8 +13,9 @@ ifdef(`__feed_atom',
 `<item>
 <title>__title</title>
 <link>https://bndl.org/__slug</link>
-<guid isPermaLink="false">tag:bndl.org,rss,notes:__slug</guid>
+<guid isPermaLink="false">tag:bndl.org,2020:notes.rss:__slug</guid>
 <pubDate>syscmd(date "-uRd __pub" | tr -d \\n)</pubDate>
+ifdef(`__upd',`<atom:updated>__upd</atom:updated>')dnl
 <description>',
 `<!doctype html>
 <html lang="en">
@@ -23,7 +24,8 @@ ifdef(`__feed_atom',
 <meta name="author" content="bandali"/>
 <meta name="viewport" content="width=device-width, initial-scale=1"/>
 <title>__title`'ifdef(`__nts',,` &mdash; bandali')</title>
-<link rel="alternate" href="/atom.xml" type="application/atom+xml"/>
+<link rel="alternate" href="/notes.atom" type="application/atom+xml"/>
+<link rel="alternate" href="/notes.rss" type="application/rss+xml"/>
 <link rel="icon" href="/gnu.ico"/>
 <link rel="stylesheet" href="/style.css"/>
 <link rel="index" href="/"/>