royalfig / smart

A theme for the open source publishing platform Ghost

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FEATURE REQUEST: Pinned posts on homepage

DmytroLitvinov opened this issue · comments

Just looked and what already exists in Ghost themes and found https://github.com/lukencode/GhostSolo. I like the way of pinned posts on the homepage https://lukelowrey.com/ as author of website has.

I think it would be nice to have it in the future. We can keep it with low priority in backlog.

I think the best way to do this (for this theme) is via routing.

In routes.yaml, you'd do this:

routes:
  /:
  controller: channel
  order: featured desc, published_at desc

This pulls featured posts to the front of the list. The reason I like this approach is that it preserves the normal pagination of the Ghost site.

I'll close this for now, but I'll think about it in the future.