mirror of
https://github.com/welpo/tabi.git
synced 2025-12-14 11:48:45 +01:00
✨ feat: allow showcasing featured projects on homepage (#297)
This commit is contained in:
parent
7ef74a8f53
commit
e7172a0432
28 changed files with 174 additions and 26 deletions
18
templates/partials/main_page_posts_list.html
Normal file
18
templates/partials/main_page_posts_list.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
<div class="list">
|
||||
<div>
|
||||
{{ macros_page_header::page_header(title=section.title) }}
|
||||
</div>
|
||||
|
||||
{%- if paginator %}
|
||||
{%- set pages = paginator.pages -%}
|
||||
{% else %}
|
||||
{%- set pages = extra_section.pages -%}
|
||||
{% 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) }}
|
||||
</div>
|
||||
|
||||
{% if paginator %}
|
||||
{%- include "partials/paginate.html" -%}
|
||||
{% endif %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue