X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/bndl.org/blobdiff_plain/505a94190f4aba9404b7c9d95444bfa0a14925ec..9b0e83daebf9e9ecda0f071bf51a9317f6d6384e:/header.html diff --git a/header.html b/header.html index e371576..78e73d6 100644 --- a/header.html +++ b/header.html @@ -1,12 +1,21 @@ -ifdef(`__feed', +include(meta_notes.m4)dnl +ifdef(`__slug',,`define(__slug, _get(`notes', __id))')dnl +ifdef(`__feed_atom', ` Amin Bandali -tag:bandali.eu.org,2016:__slug +tag:bandali.eu.org,atom,notes:__slug __pub __upd __title ', +`ifdef(`__feed_rss', +` +__title +https://bandali.eu.org/__slug +tag:bandali.eu.org,rss,notes:__slug +syscmd(date "-uRd __pub" | tr -d \\n) +', ` @@ -19,8 +28,10 @@ ifdef(`__feed', ifdef(`__pub', -`ifdef(`__first',,`')' -`ifdef(`__last',,`')') +define(__previd, `_get(`notes', decr(__id))')dnl +define(__nextid, `_get(`notes', incr(__id))')dnl +`ifelse(__previd,,,`')'dnl +`ifelse(__nextid,,,`')')dnl
@@ -41,6 +52,6 @@ ifdef(`__pub', `

__title

-

Published on syscmd(date "-d __pub" "+%B %e`,' %Y")`'ifdef(`__upd',`
-Last updated on syscmd(date "-d __upd" "+%B %e`,' %Y")')

-
')') +

Published on syscmd(date "-d __pub" "+%B %e`,' %Y" | tr -d \\n)`'ifdef(`__upd',`
+Last updated on syscmd(date "-d __upd" "+%B %e`,' %Y" | tr -d \\n)')

+
')')')dnl