experiment with a fully <pre>-based look
[~bandali/bndl.org] / header.html
index 9c73747..b89fc9e 100644 (file)
@@ -1,48 +1,45 @@
+include(meta_defs.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>
-<id>tag:bandali.eu.org,atom,notes:__slug</id>
+`<entry xml:base="https://bndl.org">
+<author><name>bandali</name></author>
+<id>tag:bndl.org,2020:notes.atom:__slug</id>
 <published>__pub</published>
-<updated>__upd</updated>
-<link href="https://bandali.eu.org/__slug" rel="alternate" type="text/html"/>
+ifdef(`__upd',`<updated>__upd</updated>',`<updated>__pub</updated>')dnl
+<link href="https://bndl.org/__slug" rel="alternate" type="text/html"/>
 <title>__title</title>
 <content type="html">',
 `ifdef(`__feed_rss',
 `<item>
 <title>__title</title>
-<link>https://bandali.eu.org/__slug</link>
-<guid isPermaLink="false">tag:bandali.eu.org,rss,notes:__slug</guid>
+<link>https://bndl.org/__slug</link>
+<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">
 <head>
 <meta charset="utf-8"/>
-<meta name="author" content="Amin Bandali"/>
+<meta name="author" content="bandali"/>
 <meta name="viewport" content="width=device-width, initial-scale=1"/>
-<title>__title`'ifdef(`__nts',,` &mdash; Amin Bandali')</title>
-<link rel="alternate" href="/atom.xml" type="application/atom+xml"/>
+<title>__title -- __site__title</title>
+<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="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>')
-</header>
-<nav>
-<ul>
-<li><a href="/#papers">Publications</a></li>
-<li><a href="/#projects">Projects</a></li>
-<li><a href="/#notes">Notes</a></li>
-<li><a href="/cv" title="curriculum vitae">CV</a></li>
-<li><a href="/contact">Contact</a></li>
-</ul>
-</nav>
+<pre>
+<b>__title</b> -- __site__title
+
+[ <a href="/">home</a> :: <a href="/#notes">notes</a> :: <a href="/projects">projects</a> :: <a href="/publications">publications</a> :: <a href="/cv" title="curriculum vitae">cv</a> :: <a href="/contact">contact</a> ]
 <main>
 ifdef(`__pub',
 `<article>
@@ -50,4 +47,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