Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Sticky blog posts

Started by Andrew Bernard 6 years ago · 4 replies · 944 views
6 years ago

Is there any way to make a blog post sticky, that is, always show at the top of the collection list?

6 years ago

@andro, Did a quick search on the github repo of Grav...

Question Sticky blog posts #156 shows how this can be implemented.

In short:

  • Add extra 'featured' category type
  • Assign 'featured' to blog page(s)
  • In template that lists blog items,
    • First list blog items from collection based on 'featured'
    • Then list other blog items based from default collection of blog.
6 years ago

Thank you all. Obviously an excellent solution in concept. But I am using Gantry 5 with the Hydrogen theme, so pardon this newbie next question, where can I find pointers on how to make a new template for Gantry Hydrogen? It's not immediately apparent, and web searches turn up virtually nothing about how to make a template in Gantry.

6 years ago

@andro, I'm sorry, but I have no experience, nor knowledge about Gantry...

Suggested topics

Topic Participants Replies Views Activity
Support · by themetman, 1 day ago
6 74 6 hours ago
Support · by TomW, 2 weeks ago
8 286 4 days ago
Support · by alex, 3 months ago
8 703 4 days ago
Support · by Supple, 1 week ago
1 133 5 days ago
Support · by TomW, 2 weeks ago
3 208 6 days ago