port from an SSI-based setup to one using GNU M4
[~bandali/bndl.org] / header.html
CommitLineData
505a9419
AB
1ifdef(`__feed',
2`<entry xml:base="https://bandali.eu.org">
3<author><name>Amin Bandali</name></author>
4<id>tag:bandali.eu.org,2016:__slug</id>
5<published>__pub</published>
6<updated>__upd</updated>
7<link href="https://bandali.eu.org/__slug" rel="alternate" type="text/html"/>
8<title>__title</title>
9<content type="html">',
10`<!doctype html>
11<html lang="en">
12<head>
13<meta charset="utf-8"/>
14<meta name="author" content="Amin Bandali"/>
15<meta name="viewport" content="width=device-width, initial-scale=1"/>
16<title>__title`'ifdef(`__nts',,` &mdash; Amin Bandali')</title>
17<link rel="alternate" href="/atom.xml" type="application/atom+xml"/>
18<link rel="icon" href="/gnu.ico"/>
19<link rel="stylesheet" href="/style.css"/>
20<link rel="index" href="/"/>
21ifdef(`__pub',
22`ifdef(`__first',,`<link rel="prev" href="/decr(__id)">')'
23`ifdef(`__last',,`<link rel="next" href="/incr(__id)">')')
24</head>
25<body>
26<header>
27ifelse(__slug,`home',`<h1>__title</h1>',
28`<strong><a href="/">Amin Bandali</a>&apos;s Personal Site</strong>')
29</header>
30<nav>
31<ul>
32<li><a href="/#papers">Publications</a></li>
33<li><a href="/#projects">Projects</a></li>
34<li><a href="/#notes">Notes</a></li>
35<li><a href="/cv" title="curriculum vitae">CV</a></li>
36<li><a href="/contact">Contact</a></li>
37</ul>
38</nav>
39<main>
40ifdef(`__pub',
41`<article>
42<header>
43<h1>__title</h1>
44<p>Published on syscmd(date "-d __pub" "+%B %e`,' %Y")`'ifdef(`__upd',`<br/>
45Last updated on syscmd(date "-d __upd" "+%B %e`,' %Y")')</p>
46</header>')')