| 1 | include(meta_defs.m4)dnl |
| 2 | ifdef(`__slug',,`define(__slug, _get(`notes', __id))')dnl |
| 3 | ifdef(`__feed_atom', |
| 4 | `<entry xml:base="https://bndl.org"> |
| 5 | <author><name>bandali</name></author> |
| 6 | <id>tag:bndl.org,2020:notes.atom:__slug</id> |
| 7 | <published>__pub</published> |
| 8 | ifdef(`__upd',`<updated>__upd</updated>',`<updated>__pub</updated>')dnl |
| 9 | <link href="https://bndl.org/__slug" 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>https://bndl.org/__slug</link> |
| 16 | <guid isPermaLink="false">tag:bndl.org,2020:notes.rss:__slug</guid> |
| 17 | <pubDate>syscmd(date "-uRd __pub" | tr -d \\n)</pubDate> |
| 18 | ifdef(`__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 -- __site__title</title> |
| 27 | <link rel="alternate" href="/notes.atom" type="application/atom+xml"/> |
| 28 | <link rel="alternate" href="/notes.rss" type="application/rss+xml"/> |
| 29 | <link rel="icon" href="/gnu.ico"/> |
| 30 | <!-- <link rel="stylesheet" href="/style.css"/> --> |
| 31 | <link rel="index" href="/"/> |
| 32 | ifdef(`__pub', |
| 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 |
| 37 | </head> |
| 38 | <body> |
| 39 | <pre> |
| 40 | <b>__title</b> -- __site__title |
| 41 | |
| 42 | [ <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> ] |
| 43 | <main> |
| 44 | ifdef(`__pub', |
| 45 | `<article> |
| 46 | <header> |
| 47 | <h1>__title</h1> |
| 48 | <p>Published on syscmd(date "-d __pub" "+%B %e`,' %Y" | tr -d \\n)`'ifdef(`__upd',`<br/> |
| 49 | Last updated on syscmd(date "-d __upd" "+%B %e`,' %Y" | tr -d \\n)')</p> |
| 50 | </header>')')')dnl |