From bc66ce9d01485ef1876374c46b67e20bc83e956a Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Thu, 18 Jul 2019 19:22:18 -0400 Subject: move #defines to header --- blog.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'blog.h') 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 "\n" +#define HTML "\n" +#define META "\n" +#define TITLE "%s\n" +#define ICON "\n" +#define STYLE "\n" +#define BODY "\n\n" + +#define HTML_HEAD DOCTYPE HTML META TITLE ICON STYLE BODY + +#define ADDRESS "
Copyright © %d Jakob Kaivo <jakob@kaivo.net>\n" + +#define HTML_TAIL "\n" ADDRESS "\n\n" + void read_post_data(void); char *find_post_data(char *key); -- cgit v1.2.1