Exclude sticky posts from pagination

This commit is contained in:
lostinlight 2018-06-20 22:53:47 +03:00
parent 85cae88092
commit 443d45d0b8
5 changed files with 8 additions and 6 deletions

View file

@ -21,7 +21,7 @@ Every post **must have** the following __metadata__:
``` ```
layout: "post" layout: "post"
title: "some title" title: "some title"
date: 2222-01-25 *date: 2222-01-25
tags: tags:
- pleroma - pleroma
preview: preview:
@ -30,6 +30,8 @@ url: "https://pleroma.social/link-to-news-source"
lang: en lang: en
``` ```
*In "featured" and "wanted" posts `date` is `created`, and must be in quotes, in exactly the right format (YYYY-MM-DD)
`Tags` `Tags`
A post may have one of these tags: fediverse, gnusocial, diaspora, friendica, hubzilla, mastodon, postactiv, pleroma, socialhome, ganggo, misskey, peertube, aardwolf 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` `Featured`
Add this metadata to a new internal website's article, to show the post in a prominent part of the Chronicles page. 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` `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). 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).

View file

@ -2,7 +2,7 @@
--- ---
layout: "post" layout: "post"
title: "Contributors wanted" title: "Contributors wanted"
date: 2018-02-05 created: "2018-02-05"
tags: tags:
- fediverse - 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." 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."

View file

@ -2,7 +2,7 @@
--- ---
layout: "post" layout: "post"
title: "Why use federated networks (updated)" title: "Why use federated networks (updated)"
date: 2018-02-27 created: "2018-02-27"
tags: tags:
- fediverse - fediverse
preview: preview:

View file

@ -1,6 +1,6 @@
<% <%
const date = post.date.format(config.date_format).split('-').join('.'); const date = post.created;
let avatarPath =""; let avatarPath ="";

View file

@ -1,6 +1,6 @@
<% <%
const date = post.date.format(config.date_format).split('-').join('.'); const date = post.created;
%> %>
<section class="urgent"> <section class="urgent">