summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorDaniel Jones <admin@danieljon.es>2020-01-24 15:17:17 +1030
committerDaniel Jones <admin@danieljon.es>2020-01-24 15:17:17 +1030
commit8a8c6b1f8abcf911da9064a7c787c7673ec2df68 (patch)
treec963f7be1e2c765be4be4d615a8ea0d0d2b30674 /config.h
parent392a2d22951385257f23ef0af3070e6b0788a540 (diff)
downloadwebsitegenerator-8a8c6b1f8abcf911da9064a7c787c7673ec2df68.tar.gz
websitegenerator-8a8c6b1f8abcf911da9064a7c787c7673ec2df68.zip
added pinned posts feature
Diffstat (limited to 'config.h')
-rw-r--r--config.h4
1 files changed, 3 insertions, 1 deletions
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