diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-07-18 19:22:18 -0400 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-07-18 19:22:18 -0400 |
commit | bc66ce9d01485ef1876374c46b67e20bc83e956a (patch) | |
tree | ca73043d951be10d6de90cf59682245f245083a2 /blog.h | |
parent | cd48596f8b9a846a47e033742cecdbec040a9549 (diff) |
move #defines to header
Diffstat (limited to 'blog.h')
-rw-r--r-- | blog.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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 © %d <a href=\"/\">Jakob Kaivo</a> <<a href=\"mailto:jakob@kaivo.net\">jakob@kaivo.net</a>>\n" + +#define HTML_TAIL "\n" ADDRESS "</body>\n</html>\n" + void read_post_data(void); char *find_post_data(char *key); |