style: Reindent and reformat

This commit is contained in:
sthag 2025-06-19 12:02:32 +02:00
parent 07f51e80a2
commit c98ebb44ca
6 changed files with 101 additions and 99 deletions

View file

@ -1,4 +1,3 @@
<!-- gates.macro -->
{% macro list(name, url, image, links) %}
<article class="portal__entry">
<section>

View file

@ -1,18 +1,22 @@
{% macro email(class='', text='name@domain.tld') %}
<a class="{{ class }}" href="">{{ text }}</a>
{# {{ 'name@domain.tld' | urlize | safe }} #}
{% macro email(class = '', text = 'name@domain.tld') %}
<a class="{{ class }}" href="">{{ text }}</a>
{# {{ 'name@domain.tld' | urlize | safe }} #}
{% endmacro %}
{% macro link(class='', text='domain.tld', href='http://domain.internal') %}
<a class="{{ class }}" href="{{ href }}">{{ text }}</a>
{% macro link(class = '', text = 'domain.tld', href = 'http://domain.internal') %}
<a class="{{ class }}" href="{{ href }}">{{ text }}</a>
{% endmacro %}
{% macro name(class='', text='Vorname Nachname') %}
<span class="{{ class }}">{{ text }}</span>
{% macro name(class = '', text = 'Vorname Nachname') %}
<span class="{{ class }}">{{ text }}</span>
{% endmacro %}
{% macro address(class='', text='Straße Nr., PLZ Ort') %}
<span class="{{ class }}">{{ text }}</span>
{% macro address(class = '', text = 'Straße Nr., PLZ Ort') %}
<span class="{{ class }}">{{ text }}</span>
{% endmacro %}
{% macro brand(class='', name='Marke') %}
<div class="{{ class }}">
{% macro brand(class = '', name = 'Marke') %}
<div class="{{ class }}">
{# <img src="" alt="Brand logo"> #}
<svg
width="128"
@ -27,17 +31,17 @@
width="126"
height="126"
x="1"
y="1" />
y="1"/>
<circle
style="fill:none;stroke:#ffffff;stroke-width:2;stroke-linecap:round;stroke-linejoin:bevel;stroke-dasharray:none"
cx="64"
cy="64"
r="63" />
r="63"/>
<path
style="fill:none;stroke:#ffffff;stroke-width:2;stroke-linecap:round;stroke-linejoin:bevel;stroke-dasharray:none"
d="m 9.3926879,32.472455 109.2146221,-2e-6 -54.607309,94.582637 z" />
d="m 9.3926879,32.472455 109.2146221,-2e-6 -54.607309,94.582637 z"/>
</g>
</svg>
<h1>{{ name }}</h1>
</div>
</div>
{% endmacro %}

View file

@ -1,8 +1,7 @@
<!-- states.macro -->
{% macro coord(id, text='X: #, Y: ##') %}
{% macro coord(id, text = 'X: #, Y: ##') %}
<span id="{{ id }}">{{ text }}</span>
{% endmacro %}
{% macro time(id, text='00:00:00', postfix=' Uhr') %}
{% macro time(id, text = '00:00:00', postfix = ' Uhr') %}
<span id="{{ id }}">{{ text }}</span><span>{{ postfix }}</span>
{% endmacro %}
{% macro date() %}