summaryrefslogtreecommitdiff
path: root/blog.h
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-07-18 19:22:18 -0400
committerJakob Kaivo <jkk@ung.org>2019-07-18 19:22:18 -0400
commitbc66ce9d01485ef1876374c46b67e20bc83e956a (patch)
treeca73043d951be10d6de90cf59682245f245083a2 /blog.h
parentcd48596f8b9a846a47e033742cecdbec040a9549 (diff)
move #defines to header
Diffstat (limited to 'blog.h')
-rw-r--r--blog.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/blog.h b/blog.h
index 70783a3..d61d670 100644
--- a/blog.h
+++ b/blog.h
@@ -4,6 +4,20 @@
#define PASSWORD_FILE "/blog/password"
#define DATA_DIRECTORY "/jakob"
+#define DOCTYPE "<!DOCTYPE html>\n"
+#define HTML "<html lang=\"en\">\n"
+#define META "<meta charset=\"utf-8\">\n"
+#define TITLE "<title>%s</title>\n"
+#define ICON "<link type=\"shortcut icon\" href=\"/icon.png\">\n"
+#define STYLE "<link rel=\"stylesheet\" type=\"text/css\" href=\"/style.css\">\n"
+#define BODY "</html>\n<body>\n"
+
+#define HTML_HEAD DOCTYPE HTML META TITLE ICON STYLE BODY
+
+#define ADDRESS "<address>Copyright &copy; %d <a href=\"/\">Jakob Kaivo</a> &lt;<a href=\"mailto:jakob@kaivo.net\">jakob@kaivo.net</a>&gt;\n"
+
+#define HTML_TAIL "\n" ADDRESS "</body>\n</html>\n"
+
void read_post_data(void);
char *find_post_data(char *key);