diff options
Diffstat (limited to '')
-rw-r--r-- | html.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/html.c b/html.c index bbc9662..215c208 100644 --- a/html.c +++ b/html.c @@ -385,6 +385,7 @@ int htmlThreadHead(FILE *file, const struct Envelope *envelope) { const char *template = TEMPLATE( <!DOCTYPE html> <meta charset="utf-8"> + <meta name="generator" content="[generator]"> <title>[subject] · [title]</title> <link rel="alternate" type="application/atom+xml" href="[atom]"> <link rel="alternate" type="application/mbox" href="[mbox]"> @@ -392,6 +393,7 @@ int htmlThreadHead(FILE *file, const struct Envelope *envelope) { char *atom = htmlThreadURL(envelope, "atom"); char *mbox = htmlThreadURL(envelope, "mbox"); struct Variable vars[] = { + { "generator", GENERATOR_URL }, { "subject", envelope->subject }, { "title", baseTitle }, { "atom", atom }, @@ -475,10 +477,12 @@ int htmlSubthreadClose(FILE *file) { static int htmlFooter(FILE *file) { const char *template = TEMPLATE( <footer> - <small>generated <time datetime="[time]">[time]</time></small> + <small><a href="[generator]">generated</a> + <time datetime="[time]">[time]</time></small> </footer> ); struct Variable vars[] = { + { "generator", GENERATOR_URL }, { "time", htmlUTC(time(NULL)) }, {0}, }; @@ -495,10 +499,12 @@ int htmlIndexHead(FILE *file) { const char *template = TEMPLATE( <!DOCTYPE html> <meta charset="utf-8"> + <meta name="generator" content="[generator]"> <title>[title]</title> <link rel="alternate" type="application/atom+xml" href="index.atom"> ); struct Variable vars[] = { + { "generator", GENERATOR_URL }, { "title", baseTitle }, {0}, }; |