diff options
author | Daniel Jones <admin@danieljon.es> | 2019-12-31 02:31:23 +1030 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2019-12-31 02:31:23 +1030 |
commit | e4582742b95840f234b47c8f7b264ac3867fc817 (patch) | |
tree | 11af87d417204ad5a06024a786710345180ec974 /pages.h | |
parent | 1bc7d1547275671f3243ea16cacad0aea6cef649 (diff) | |
download | websitegenerator-e4582742b95840f234b47c8f7b264ac3867fc817.tar.gz websitegenerator-e4582742b95840f234b47c8f7b264ac3867fc817.zip |
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.
Diffstat (limited to 'pages.h')
-rw-r--r-- | pages.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -22,6 +22,8 @@ #include <sys/stat.h> #include <time.h> #include <errno.h> +#include <dirent.h> +#include <stdlib.h> 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 |