about summary refs log tree commit diff
path: root/html.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-26 15:57:07 -0400
committerJune McEnroe <june@causal.agency>2020-04-26 16:04:43 -0400
commit7953ea0aef6d6d7110c95f368c07c1ac8b6223b8 (patch)
treeb10d55b0e940dd8a287cb5b51b732c0faef25ae5 /html.c
parentGenerate XHTML content in Atom entries (diff)
downloadbubger-7953ea0aef6d6d7110c95f368c07c1ac8b6223b8.tar.gz
bubger-7953ea0aef6d6d7110c95f368c07c1ac8b6223b8.zip
Generate index.atom
Diffstat (limited to 'html.c')
-rw-r--r--html.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/html.c b/html.c
index 8f349e5..3bd192a 100644
--- a/html.c
+++ b/html.c
@@ -296,8 +296,6 @@ int htmlMessageClose(FILE *file) {
 	return templateRender(file, TEMPLATE(</article>), NULL, NULL);
 }
 
-const char *htmlTitle;
-
 static char *htmlThreadURL(const struct Envelope *envelope, const char *type) {
 	struct Variable vars[] = {
 		{ "messageID", envelope->messageID },
@@ -319,7 +317,7 @@ int htmlThreadHead(FILE *file, const struct Envelope *envelope) {
 	char *mbox = htmlThreadURL(envelope, "mbox");
 	struct Variable vars[] = {
 		{ "subject", envelope->subject },
-		{ "title", htmlTitle },
+		{ "title", baseTitle },
 		{ "atom", atom },
 		{ "mbox", mbox },
 		{0},
@@ -421,7 +419,7 @@ int htmlIndexHead(FILE *file) {
 		<link rel="alternate" type="application/atom+xml" href="index.atom">
 	);
 	struct Variable vars[] = {
-		{ "title", htmlTitle },
+		{ "title", baseTitle },
 		{0},
 	};
 	return templateRender(file, template, vars, escapeXML);
@@ -441,7 +439,7 @@ int htmlIndexOpen(FILE *file) {
 			<ol>
 	);
 	struct Variable vars[] = {
-		{ "title", htmlTitle },
+		{ "title", baseTitle },
 		{0},
 	};
 	return templateRender(file, template, vars, escapeXML);