diff options
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); |