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. --- config.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'config.h') diff --git a/config.h b/config.h index e9374bb..02c8abe 100644 --- a/config.h +++ b/config.h @@ -85,6 +85,13 @@ static const char *portfolio_info = "

Projects

Detailing a number of my static const char *portfolio_content = "content/portfolio.txt"; static const char *portfolio_content_output = "portfolio.html"; +/* posts */ +static const char *posts_title = "Daniel's posts"; +static const char *posts_info = "

Posts

My posts about programming and things.
Date format is day/month/year because I'm sane.

"; +static const char *posts_content = "content/blog/"; +static const char *posts_output_dir = "posts/"; +static const int posts_per_page = 10; + /* each page to be generated go into this array */ static const struct page pages[] = { /* function flags */ @@ -96,6 +103,7 @@ static const struct page pages[] = { {opinions_animepage, NONE}, {opinions_everythingpage, NONE}, {portfoliopage, NONE}, + {postspage, NONE}, }; #endif -- cgit v1.2.3