From 8a8c6b1f8abcf911da9064a7c787c7673ec2df68 Mon Sep 17 00:00:00 2001 From: Daniel Jones Date: Fri, 24 Jan 2020 15:17:17 +1030 Subject: added pinned posts feature --- config.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config.h') diff --git a/config.h b/config.h index df32534..bcd15c1 100644 --- a/config.h +++ b/config.h @@ -22,6 +22,7 @@ enum flag { NONE = 0, RSS = 1, + PINNED = 2, }; struct page @@ -95,6 +96,7 @@ static const char *posts_output_dir = "posts/"; static const char *direct_output_dir = "posts/direct/"; static const int posts_per_page = 10; static const int ignore[] = {}; /* ignore these posts */ +static const int pinned[] = {107,104}; /* pinned posts */ /* rss */ static const char *rss_output = "posts/posts.rss"; @@ -114,7 +116,7 @@ static const struct page pages[] = { {opinions_animepage, NONE}, {opinions_everythingpage, NONE}, {portfoliopage, NONE}, - {postspage, RSS}, /* flag RSS to generate RSS feed */ + {postspage, RSS|PINNED}, /* flags: RSS feed, pinned posts */ }; #endif -- cgit v1.2.3