Commit | Line | Data |
---|---|---|
206884ba | 1 | include(meta_defs.m4)dnl |
c08732dd | 2 | ifdef(`__slug',,`define(__slug, _get(`notes', __id))')dnl |
066f7565 | 3 | ifdef(`__feed_atom', |
3fdab855 | 4 | `<entry xml:base="https://bndl.org"> |
ea39cfbe | 5 | <author><name>bandali</name></author> |
dcc71b98 | 6 | <id>tag:bndl.org,2020:notes.atom:__slug</id> |
505a9419 | 7 | <published>__pub</published> |
dcc71b98 | 8 | ifdef(`__upd',`<updated>__upd</updated>',`<updated>__pub</updated>') |
3fdab855 | 9 | <link href="https://bndl.org/__slug" rel="alternate" type="text/html"/> |
505a9419 AB |
10 | <title>__title</title> |
11 | <content type="html">', | |
066f7565 AB |
12 | `ifdef(`__feed_rss', |
13 | `<item> | |
14 | <title>__title</title> | |
3fdab855 | 15 | <link>https://bndl.org/__slug</link> |
dcc71b98 | 16 | <guid isPermaLink="false">tag:bndl.org,2020:notes.rss:__slug</guid> |
066f7565 | 17 | <pubDate>syscmd(date "-uRd __pub" | tr -d \\n)</pubDate> |
dcc71b98 | 18 | ifdef(`__upd',`<atom:updated>__upd</atom:updated>')dnl |
066f7565 | 19 | <description>', |
505a9419 AB |
20 | `<!doctype html> |
21 | <html lang="en"> | |
22 | <head> | |
23 | <meta charset="utf-8"/> | |
ea39cfbe | 24 | <meta name="author" content="bandali"/> |
505a9419 | 25 | <meta name="viewport" content="width=device-width, initial-scale=1"/> |
0c44106a | 26 | <title>__title`'ifdef(`__nts',,` — bandali')</title> |
dcc71b98 AB |
27 | <link rel="alternate" href="/notes.atom" type="application/atom+xml"/> |
28 | <link rel="alternate" href="/notes.rss" type="application/rss+xml"/> | |
505a9419 AB |
29 | <link rel="icon" href="/gnu.ico"/> |
30 | <link rel="stylesheet" href="/style.css"/> | |
31 | <link rel="index" href="/"/> | |
32 | ifdef(`__pub', | |
c08732dd AB |
33 | define(__previd, `_get(`notes', decr(__id))')dnl |
34 | define(__nextid, `_get(`notes', incr(__id))')dnl | |
35 | `ifelse(__previd,,,`<link rel="prev" href="/__previd">')'dnl | |
36 | `ifelse(__nextid,,,`<link rel="next" href="/__nextid">')')dnl | |
505a9419 AB |
37 | </head> |
38 | <body> | |
39 | <header> | |
40 | ifelse(__slug,`home',`<h1>__title</h1>', | |
0c44106a | 41 | `<strong><a href="/">Bandali</a>'s Personal Site</strong>') |
505a9419 AB |
42 | </header> |
43 | <nav> | |
44 | <ul> | |
505a9419 | 45 | <li><a href="/#notes">Notes</a></li> |
ea39cfbe AB |
46 | <li><a href="/projects">Projects</a></li> |
47 | <li><a href="/publications">Publications</a></li> | |
505a9419 AB |
48 | <li><a href="/cv" title="curriculum vitae">CV</a></li> |
49 | <li><a href="/contact">Contact</a></li> | |
50 | </ul> | |
51 | </nav> | |
52 | <main> | |
53 | ifdef(`__pub', | |
54 | `<article> | |
55 | <header> | |
56 | <h1>__title</h1> | |
066f7565 AB |
57 | <p>Published on syscmd(date "-d __pub" "+%B %e`,' %Y" | tr -d \\n)`'ifdef(`__upd',`<br/> |
58 | Last updated on syscmd(date "-d __upd" "+%B %e`,' %Y" | tr -d \\n)')</p> | |
c08732dd | 59 | </header>')')')dnl |