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