summary refs log tree commit diff
path: root/atom.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-26 18:00:30 -0400
committerJune McEnroe <june@causal.agency>2020-04-26 18:00:30 -0400
commit3ca8ba8b466028cc5d653b960abd9b2126031fef (patch)
treebc3dd2aa60cbc6b13c36df364d3dbc4ce886ac17 /atom.c
parentPut dates on new lines in index (diff)
downloadbubger-3ca8ba8b466028cc5d653b960abd9b2126031fef.tar.gz
bubger-3ca8ba8b466028cc5d653b960abd9b2126031fef.zip
Add mailto address for the archive
Diffstat (limited to '')
-rw-r--r--atom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/atom.c b/atom.c
index 85393c9..ea58c49 100644
--- a/atom.c
+++ b/atom.c
@@ -158,7 +158,7 @@ int atomIndexOpen(FILE *file) {
 	const char *template = TEMPLATE(
 		<[q]xml version="1.0" encoding="utf-8"[q]>
 		<feed xmlns="http://www.w3.org/2005/Atom">
-		<id>[base]</id>
+		<id>mailto:[addr]</id>
 		<title>[title]</title>
 		<updated>[updated]</updated>
 		<link rel="self" href="[base]/index.atom"/>
@@ -169,6 +169,7 @@ int atomIndexOpen(FILE *file) {
 	strftime(updated, sizeof(updated), "%FT%TZ", gmtime(&now));
 	struct Variable vars[] = {
 		{ "q", "?" },
+		{ "addr", baseAddress },
 		{ "base", (baseURL ? baseURL : "") },
 		{ "title", baseTitle },
 		{ "updated", updated },
June McEnroe 2021-01-19Add mtags to generate tags for make and mdocJune McEnroe 2021-01-19Map tags to IDs using only [[:alnum:]-._]June McEnroe 2021-01-19Don't use a pager if reading standard inputJune McEnroe 2021-01-19Support BSD make syntax and match *.amJune McEnroe These don't really go together, but... 2021-01-19Match tab following escaped newline in make assignmentsJune McEnroe Otherwise it ends up going into Shell state. 2021-01-18Allow matching lexers using first input lineJune McEnroe