a few tweaks
[~bandali/bndl.org] / header.html
index 9c73747..33ac3e5 100644 (file)
@@ -1,3 +1,5 @@
+include(meta_notes.m4)dnl
+ifdef(`__slug',,`define(__slug, _get(`notes', __id))')dnl
 ifdef(`__feed_atom',
 `<entry xml:base="https://bandali.eu.org">
 <author><name>Amin Bandali</name></author>
@@ -20,19 +22,21 @@ ifdef(`__feed_atom',
 <meta charset="utf-8"/>
 <meta name="author" content="Amin Bandali"/>
 <meta name="viewport" content="width=device-width, initial-scale=1"/>
-<title>__title`'ifdef(`__nts',,` &mdash; Amin Bandali')</title>
+<title>__title`'ifdef(`__nts',,` &mdash; bandali')</title>
 <link rel="alternate" href="/atom.xml" type="application/atom+xml"/>
 <link rel="icon" href="/gnu.ico"/>
 <link rel="stylesheet" href="/style.css"/>
 <link rel="index" href="/"/>
 ifdef(`__pub',
-`ifdef(`__first',,`<link rel="prev" href="/decr(__id)">')'
-`ifdef(`__last',,`<link rel="next" href="/incr(__id)">')')
+define(__previd, `_get(`notes', decr(__id))')dnl
+define(__nextid, `_get(`notes', incr(__id))')dnl
+`ifelse(__previd,,,`<link rel="prev" href="/__previd">')'dnl
+`ifelse(__nextid,,,`<link rel="next" href="/__nextid">')')dnl
 </head>
 <body>
 <header>
 ifelse(__slug,`home',`<h1>__title</h1>',
-`<strong><a href="/">Amin Bandali</a>&apos;s Personal Site</strong>')
+`<strong><a href="/">Bandali</a>&apos;s Personal Site</strong>')
 </header>
 <nav>
 <ul>
@@ -50,4 +54,4 @@ ifdef(`__pub',
 <h1>__title</h1>
 <p>Published on syscmd(date "-d __pub" "+%B %e`,' %Y" | tr -d \\n)`'ifdef(`__upd',`<br/>
 Last updated on syscmd(date "-d __upd" "+%B %e`,' %Y" | tr -d \\n)')</p>
-</header>')')')
+</header>')')')dnl