diff options
author | June McEnroe <june@causal.agency> | 2020-04-26 18:00:30 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-04-26 18:00:30 -0400 |
commit | 3ca8ba8b466028cc5d653b960abd9b2126031fef (patch) | |
tree | bc3dd2aa60cbc6b13c36df364d3dbc4ce886ac17 /atom.c | |
parent | Put dates on new lines in index (diff) | |
download | bubger-3ca8ba8b466028cc5d653b960abd9b2126031fef.tar.gz bubger-3ca8ba8b466028cc5d653b960abd9b2126031fef.zip |
Add mailto address for the archive
Diffstat (limited to '')
-rw-r--r-- | atom.c | 3 |
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 }, |