From e4582742b95840f234b47c8f7b264ac3867fc817 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Tue, 31 Dec 2019 02:31:23 +1030 Subject: start generating posts currently gets every file in the posts directory, sorts them and temporarily creates empty txt files in output/posts. lots to do still. --- pages.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pages.h') diff --git a/pages.h b/pages.h index 5f214d8..ba5b13b 100644 --- a/pages.h +++ b/pages.h @@ -22,6 +22,8 @@ #include #include #include +#include +#include struct fileorstring { @@ -37,6 +39,8 @@ int writeatbyte(const char *dest, struct fileorstring *source, long offset); int replaceinpage(const char *outfile, const char *toreplace, struct fileorstring *source); char *gettime(char *buffer, size_t size); int createtmpfile(const char *name, const char *content, size_t size); +int makedirectories(const char *basedir, const char *file); +int postscompare(const void *a, const void *b); /* generators (to be put into the pages array) */ int frontpage(int flags); @@ -47,5 +51,6 @@ int opinionspage(int flags); int opinions_animepage(int flags); int opinions_everythingpage(int flags); int portfoliopage(int flags); +int postspage(int flags); #endif -- cgit v1.2.3