diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 492d672..f46bc15 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,8 +30,6 @@ 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 @@ -55,7 +53,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 must be removed from an older post when creating a new "featured" or "wanted" post. Metadata title `created` must also be changed to `date`. +`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. `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 019f581..f9f78d3 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 (updated)" -created: "2018-02-05" +date: 2018-06-21 tags: - fediverse preview: "Anyone who knows Python / VueJS or wants to learn those is very welcome to join and help improve The-Federation.Info stats" diff --git a/source/_posts/why-use-federated-networks.md b/source/_posts/why-use-federated-networks.md index 68691d2..acb94f6 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)" -created: "2018-02-27" +date: 2018-06-21 tags: - fediverse preview: diff --git a/themes/starter/layout/_partial/featured.ejs b/themes/starter/layout/_partial/featured.ejs index d31a57b..9155704 100644 --- a/themes/starter/layout/_partial/featured.ejs +++ b/themes/starter/layout/_partial/featured.ejs @@ -1,6 +1,6 @@ <% - const date = post.created; + const date = post.date.format(config.date_format).split('-').join('.'); let avatarPath =""; diff --git a/themes/starter/layout/_partial/wanted.ejs b/themes/starter/layout/_partial/wanted.ejs index dd4ee8a..22cee85 100644 --- a/themes/starter/layout/_partial/wanted.ejs +++ b/themes/starter/layout/_partial/wanted.ejs @@ -1,6 +1,6 @@ <% - const date = post.created; + const date = post.date.format(config.date_format).split('-').join('.'); %>