summary refs log tree commit diff
path: root/html.c
diff options
context:
space:
mode:
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);