feat: add pinned posts functionality (#424)

This commit is contained in:
Óscar 2024-11-13 18:07:46 +01:00 committed by GitHub
parent 42f9bb9781
commit 36e53dc646
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 207 additions and 91 deletions

View file

@ -37,7 +37,7 @@
{% endif -%}
{% set max_posts = section.extra.max_posts | default(value=999999) %}
{{ macros_list_posts::list_posts(posts=pages, max=max_posts, language_strings=language_strings, section_path=path) }}
{{ macros_list_posts::list_posts(posts=pages, max=max_posts, language_strings=language_strings, section_path=path, pinned_first=true) }}
</div>
{% if paginator and paginator.pages | length > 0 %}