From 443d45d0b8830379a59c6a54e898b891a6ed9302 Mon Sep 17 00:00:00 2001 From: lostinlight Date: Wed, 20 Jun 2018 22:53:47 +0300 Subject: [PATCH] Exclude sticky posts from pagination --- CONTRIBUTING.md | 6 ++++-- source/_posts/fediverse-info-contributors-wanted.md | 2 +- source/_posts/why-use-federated-networks.md | 2 +- themes/starter/layout/_partial/featured.ejs | 2 +- themes/starter/layout/_partial/wanted.ejs | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3671eb4..492d672 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -21,7 +21,7 @@ Every post **must have** the following __metadata__: ``` layout: "post" title: "some title" -date: 2222-01-25 +*date: 2222-01-25 tags: - pleroma preview: @@ -30,6 +30,8 @@ url: "https://pleroma.social/link-to-news-source" lang: en ``` +*In "featured" and "wanted" posts `date` is `created`, and must be in quotes, in exactly the right format (YYYY-MM-DD) + `Tags` A post may have one of these tags: fediverse, gnusocial, diaspora, friendica, hubzilla, mastodon, postactiv, pleroma, socialhome, ganggo, misskey, peertube, aardwolf @@ -53,7 +55,7 @@ Add this metadata to a post that you wish to show in the upper visible part of t `Featured` Add this metadata to a new internal website's article, to show the post in a prominent part of the Chronicles page. -`Wanted` and `featured` can't be mixed and are temporary. This metadata should be removed from an older post when creating a new "featured" or "wanted" post. +`Wanted` and `featured` can't be mixed and are temporary. This metadata must be removed from an older post when creating a new "featured" or "wanted" post. Metadata title `created` must also be changed to `date`. `Banner` Required for "featured" posts only, an image wide enough to be used as a fullscreen background, should be placed in `/source/_posts/exact-post-file-name` folder. See [example](./source/_posts/why-use-federated-networks). diff --git a/source/_posts/fediverse-info-contributors-wanted.md b/source/_posts/fediverse-info-contributors-wanted.md index b37dd6a..74daa3b 100644 --- a/source/_posts/fediverse-info-contributors-wanted.md +++ b/source/_posts/fediverse-info-contributors-wanted.md @@ -2,7 +2,7 @@ --- layout: "post" title: "Contributors wanted" -date: 2018-02-05 +created: "2018-02-05" tags: - fediverse preview: "Jason Robinson calls out for help to make The-Federation.info a stats hub for all projects. Help adding OStatus and ActivityPub networks to the list." diff --git a/source/_posts/why-use-federated-networks.md b/source/_posts/why-use-federated-networks.md index 1fc62e5..68691d2 100644 --- a/source/_posts/why-use-federated-networks.md +++ b/source/_posts/why-use-federated-networks.md @@ -2,7 +2,7 @@ --- layout: "post" title: "Why use federated networks (updated)" -date: 2018-02-27 +created: "2018-02-27" tags: - fediverse preview: diff --git a/themes/starter/layout/_partial/featured.ejs b/themes/starter/layout/_partial/featured.ejs index 9155704..d31a57b 100644 --- a/themes/starter/layout/_partial/featured.ejs +++ b/themes/starter/layout/_partial/featured.ejs @@ -1,6 +1,6 @@ <% - const date = post.date.format(config.date_format).split('-').join('.'); + const date = post.created; let avatarPath =""; diff --git a/themes/starter/layout/_partial/wanted.ejs b/themes/starter/layout/_partial/wanted.ejs index 22cee85..dd4ee8a 100644 --- a/themes/starter/layout/_partial/wanted.ejs +++ b/themes/starter/layout/_partial/wanted.ejs @@ -1,6 +1,6 @@ <% - const date = post.date.format(config.date_format).split('-').join('.'); + const date = post.created; %>