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