Intuitive, expansive and flexible creation with no distractions.
Robust, user-friendly data protection for your visitors and you.
Modern, effective solutions for site growth and functionality.
Professionally designed and coded themes and plugins.
Free and premium, beautifully-designed templates.
Expand your site with your favorite tools and apps.
Get help building your site from our web development services.
Learn how Publii works, from installation to creation.
Documentation, guides, and tutorials for developers.
Explore and interact with others and learn new things.
Dedicated customer support for paid products.
Read up on the latest news about Publii and its products.
Forum › General Inquiry
Dear all –
I marked some of my posts as featured.
As long as they marked as featured, I want them to be listed on top, e.g.:
I neither found a description in the docs nor here on how to to that…
Thanks in advance, Michael
I’m afraid there’s no way to display a post by date range; we can filter and display them according to the most recent or oldest entry.
e.g. https://getpublii.com/dev/getpostsbytags-helper/
what a pity. I was thinking of the functionality of the sticky posts in WordPress. Maybe an idea for future releases? Cheers, Michael
Doesn’t that depend on your theme?
Editorial shows a featured post at the top, for example. And Taste lets you display a featured post in the hero section.
Hi, privii,
thanks a lot for your suggestion. It gave me the right direction 🙂
I now use this structure, and it works fine in my theme:
{{> head}} {{#if @renderer.isFirstPage}} {{#featuredPosts}} <article> </article> {{/featuredPosts}} {{/if}} {{#each posts}} <article> </article> {{/each}} {{> footer}}