♻️ refactor: split macros.html in different files

Clearer macros format.
This commit is contained in:
welpo
2023-02-21 19:39:54 +01:00
parent 3d7a662ac8
commit 3aa22cb3ad
18 changed files with 233 additions and 256 deletions

View File

@@ -6,12 +6,12 @@
{% endif -%}
{%- if section.extra.desc %}
{{ post_macros::page_desc(desc=section.extra.desc, page=section) }}
{{ macros_page_desc::page_desc(desc=section.extra.desc, page=section) }}
{% endif -%}
<main class="list">
<div>
{{ post_macros::page_header(title=section.title) }}
{{ macros_page_header::page_header(title=section.title) }}
</div>
{%- if paginator %}
{%- set show_pages = paginator.pages -%}
@@ -19,7 +19,7 @@
{%- set show_pages = section.pages -%}
{% endif -%}
{{ post_macros::list_posts(pages=show_pages) }}
{{ macros_list_posts::list_posts(pages=show_pages) }}
</main>
{% if paginator %}