♻️ 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

@@ -0,0 +1,13 @@
{% macro page_desc(desc, page) %}
<div id="banner-container-home">
<div id="home-banner-text">
<div class="home-banner-header">{{ desc.title }}</div>
<section id="banner-home-subtitle">
{{ page.content | safe }}
</section>
</div>
<div class="image-container-home">
<img alt="the owner" class="banner-home-img" src={{ desc.img | replace(from="$BASE_URL", to=config.base_url) | safe}} />
</div>
</div>
{% endmacro %}