在ghost中,如何将所有精选帖子置顶?

In ghost, how to sticky all the featured posts on the top?

我想添加将精选post贴在第一页顶部的功能。我找到了这个 - Custom Featured Post Styling,但由于上下文限制,此方法只能将 post 粘贴到最初显示 post 的页面顶部。

The {{#foreach}} helper does not perform queries, and can only operate on the data available to it in the current template scope. You can find out what data a template has access to by looking it up in the context table.

例如,如果有3页,文章test显示在第2页,然后我将其标记为精选并查看第一页,但是test不会显示在上面。

我的问题是:如何将所有特色 post 粘在我第一页的顶部,无论它们最初显示在何处?

刚写的。它将与即将发布的即将发布的版本一起使用。有其局限性,但我认为可以为您所做的工作:

https://www.ghostforbeginners.com/move-featured-posts-to-the-top-of-your-blog/