feat: add section_title macro with optional anchor

This commit is contained in:
2026-05-20 23:54:14 +02:00
parent 0114b17adf
commit 478a77b61a
+14
View File
@@ -0,0 +1,14 @@
{% macro section_title(title, anchor="") %}
<section class="section-title">
<div class="container text-center">
{%- if anchor %}
<div class="anchor" id="{{ anchor }}">
<h2>{{ title }}</h2>
</div>
{%- else %}
<h2>{{ title }}</h2>
{%- endif %}
<span class="bordered-icon"><i class="fa fa-circle-thin"></i></span>
</div>
</section>
{% endmacro %}