summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-01-12 00:30:04 +1030
committerDaniel Jones <admin@danieljon.es>2020-01-12 00:30:04 +1030
commitb57adf7a8c5ba78fdfdbf9f33dbd4837f10dd5a3 (patch)
treee58644a5a52cc2aca400a38f0eeb00d512086ca0 /config.h
parentfcab620cc039fd96ea9976ef549448e4aca851de (diff)
downloadwebsitegenerator-b57adf7a8c5ba78fdfdbf9f33dbd4837f10dd5a3.tar.gz
websitegenerator-b57adf7a8c5ba78fdfdbf9f33dbd4837f10dd5a3.zip
further work implementing rss feed
currently broken
Diffstat (limited to 'config.h')
-rw-r--r--config.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/config.h b/config.h
index cca7d3b..1b13b12 100644
--- a/config.h
+++ b/config.h
@@ -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