diff options
author | Daniel Jones <admin@danieljon.es> | 2020-01-12 00:30:04 +1030 |
---|---|---|
committer | Daniel Jones <admin@danieljon.es> | 2020-01-12 00:30:04 +1030 |
commit | b57adf7a8c5ba78fdfdbf9f33dbd4837f10dd5a3 (patch) | |
tree | e58644a5a52cc2aca400a38f0eeb00d512086ca0 /config.h | |
parent | fcab620cc039fd96ea9976ef549448e4aca851de (diff) | |
download | websitegenerator-b57adf7a8c5ba78fdfdbf9f33dbd4837f10dd5a3.tar.gz websitegenerator-b57adf7a8c5ba78fdfdbf9f33dbd4837f10dd5a3.zip |
further work implementing rss feed
currently broken
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -21,6 +21,7 @@ enum flag { NONE = 0, + RSS = 1, }; struct page @@ -35,6 +36,7 @@ static const char *title_string = "{TITLE}"; static const char *content_string = "{CONTENT}"; static const char *info_string = "{INFO}"; static const char *time_string = "{TIME}"; +static const char *rss_string = "{ITEMS}"; static const char *template_file = "template.txt"; /* frontpage */ @@ -96,6 +98,8 @@ static const int ignore[] = {}; /* ignore these posts */ /* rss */ static const char *rss_output = "posts/posts.rss"; +static const char *rss_template = "rss.txt"; +static const int post_count = 10; /* each page to be generated go into this array */ static const struct page pages[] = { @@ -108,8 +112,7 @@ static const struct page pages[] = { {opinions_animepage, NONE}, {opinions_everythingpage, NONE}, {portfoliopage, NONE}, - {postspage, NONE}, - {rsspage, NONE}, + {postspage, RSS}, /* flag RSS to generate RSS feed */ }; #endif |