revamp the website
[~bandali/bndl.org] / header.html
... / ...
CommitLineData
1include(meta_defs.m4)dnl
2ifdef(`__slug',,`define(__slug, _get(`notes', __id))')dnl
3ifdef(`__feed_atom',
4`<entry xml:base="__d">
5<author><name>bandali</name></author>
6<id>tag:shemshak.org,2020:__p/notes.atom:__slug</id>
7<published>__pub</published>
8ifdef(`__upd',`<updated>__upd</updated>',`<updated>__pub</updated>')dnl
9<link href="__d`'__p/__slug.html" rel="alternate" type="text/html"/>
10<title>__title</title>
11<content type="html">',
12`ifdef(`__feed_rss',
13`<item>
14<title>__title</title>
15<link>__d`'__p/__slug.html</link>
16<guid isPermaLink="false">tag:shemshak.org,2020:__p/notes.rss:__slug</guid>
17<pubDate>syscmd(date "-uRd __pub" | tr -d \\n)</pubDate>
18ifdef(`__upd',`<atom:updated>__upd</atom:updated>')dnl
19<description>',
20`<!doctype html>
21<html lang="en">
22<head>
23<meta charset="utf-8"/>
24<meta name="author" content="bandali"/>
25<meta name="viewport" content="width=device-width, initial-scale=1"/>
26<title>__title`'ifdef(`__nts',,` &mdash; bandali')</title>
27<link rel="alternate" href="__p/notes.atom" type="application/atom+xml"/>
28<link rel="alternate" href="__p/notes.rss" type="application/rss+xml"/>
29<link rel="icon" href="__p/gnu.ico"/>
30<link rel="stylesheet" href="__p/style.css"/>
31ifdef(`__pub',
32define(__previd, `_get(`notes', decr(__id))')dnl
33define(__nextid, `_get(`notes', incr(__id))')dnl
34`ifelse(__previd,,,`<link rel="prev" href="__p/__previd.html">')'dnl
35`ifelse(__nextid,,,`<link rel="next" href="__p/__nextid.html">')')dnl
36</head>
37<body>
38<header>
39ifelse(__slug,`home',`<h1>__site__title</h1>',
40`<strong><a href="__p/">__site__title</a></strong>')
41</header>
42<nav>
43<ul>
44<li><a href="__p/#notes">notes</a></li>
45<li><a href="__p/publications.html">publications</a></li>
46<li><a href="__p/cv.html" title="curriculum vitae">cv</a></li>
47<li><a href="__p/contact.html">contact</a></li>
48dnl<li><a href="__p/fa/" title="Persian">فارسی</a></li>
49</ul>
50</nav>
51<main>
52ifdef(`__pub',
53`<article>
54<header>
55<h1>__title</h1>
56<p>Published on syscmd(date "-d __pub" "+%B %e`,' %Y" | tr -d \\n)`'ifdef(`__upd',`<br/>
57Last updated on syscmd(date "-d __upd" "+%B %e`,' %Y" | tr -d \\n)')</p>
58</header>')')')dnl