style: Reindent and reformat
This commit is contained in:
parent
07f51e80a2
commit
c98ebb44ca
6 changed files with 101 additions and 99 deletions
|
|
@ -1,31 +1,30 @@
|
||||||
<!-- gates.macro -->
|
|
||||||
{% macro list(name, url, image, links) %}
|
{% macro list(name, url, image, links) %}
|
||||||
<article class="portal__entry">
|
<article class="portal__entry">
|
||||||
<section>
|
<section>
|
||||||
<h2>
|
<h2>
|
||||||
<a class="a_discreet" href="{{ url }}">{{ name }}</a>
|
<a class="a_discreet" href="{{ url }}">{{ name }}</a>
|
||||||
</h2>
|
</h2>
|
||||||
<a class="portal__link portal__link--{{ name | slug }}" href="{{ url }}">
|
<a class="portal__link portal__link--{{ name | slug }}" href="{{ url }}">
|
||||||
<img src="{{ image.src }}" alt="{{ image.alt }}"/>
|
<img src="{{ image.src }}" alt="{{ image.alt }}"/>
|
||||||
</a>
|
</a>
|
||||||
{% if links %}
|
{% if links %}
|
||||||
<ul class="portal__list">
|
<ul class="portal__list">
|
||||||
{% for link in links %}
|
{% for link in links %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ link.href }}"><img src="{{ link.img }}" width="16" height="16"/>{{ link.name }}</a>
|
<a href="{{ link.href }}"><img src="{{ link.img }}" width="16" height="16"/>{{ link.name }}</a>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</section>
|
</section>
|
||||||
</article>
|
</article>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
{% macro simple(name, url) %}
|
{% macro simple(name, url) %}
|
||||||
<article class="portal__entry">
|
<article class="portal__entry">
|
||||||
<section>
|
<section>
|
||||||
<h2>
|
<h2>
|
||||||
<a class="a_discreet" href="{{ url }}">{{ name }}</a>
|
<a class="a_discreet" href="{{ url }}">{{ name }}</a>
|
||||||
</h2>
|
</h2>
|
||||||
</section>
|
</section>
|
||||||
</article>
|
</article>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
@ -1,24 +1,24 @@
|
||||||
{% macro start() %}
|
{% macro start() %}
|
||||||
<script>
|
<script>
|
||||||
logAdd('EVENT :: Document \'%s\' event fired.', 'DOMContentLoaded');
|
logAdd('EVENT :: Document \'%s\' event fired.', 'DOMContentLoaded');
|
||||||
logPerf('HEAD start :: Debugging performance...', debugOn);
|
logPerf('HEAD start :: Debugging performance...', debugOn);
|
||||||
</script>
|
</script>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
{% macro log(msg, arg = '') %}
|
{% macro log(msg, arg = '') %}
|
||||||
<script>
|
<script>
|
||||||
logPerf('{{ msg }}', {{ arg }});
|
logPerf('{{ msg }}', {{ arg }});
|
||||||
</script>
|
</script>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
{% macro debug(state = false, display = false, assets = false) %}
|
{% macro debug(state = false, display = false, assets = false) %}
|
||||||
{# {{ set hippie.debugMode = state }} #}
|
{# {{ set hippie.debugMode = state }} #}
|
||||||
<script>
|
<script>
|
||||||
debugOn = {{ state }};
|
debugOn = {{ state }};
|
||||||
debugOnScreen = {{ display }};
|
debugOnScreen = {{ display }};
|
||||||
assetsLoaded = {{ assets }};
|
assetsLoaded = {{ assets }};
|
||||||
</script>
|
</script>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
{% macro asset(state = false) %}
|
{% macro asset(state = false) %}
|
||||||
<script>
|
<script>
|
||||||
assetsLoaded = {{ state }};
|
assetsLoaded = {{ state }};
|
||||||
</script>
|
</script>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
{% macro main(data, active = '') %}
|
{% macro main(data, active = '') %}
|
||||||
<nav>
|
<nav>
|
||||||
<ul>
|
<ul>
|
||||||
{% for link in data %}
|
{% for link in data %}
|
||||||
<li{%if active == link.text %} class="active_txt" {% endif %}>
|
<li{%if active == link.text %} class="active_txt" {% endif %}>
|
||||||
{%if active == link.text %}{{ link.text }}{%else%}
|
{%if active == link.text %}{{ link.text }}{%else%}
|
||||||
<a href="{{ link.href }}">{{ link.text }}</a>
|
<a href="{{ link.href }}">{{ link.text }}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
@ -1,43 +1,47 @@
|
||||||
{% macro email(class='', text='name@domain.tld') %}
|
{% macro email(class = '', text = 'name@domain.tld') %}
|
||||||
<a class="{{ class }}" href="">{{ text }}</a>
|
<a class="{{ class }}" href="">{{ text }}</a>
|
||||||
{# {{ 'name@domain.tld' | urlize | safe }} #}
|
{# {{ 'name@domain.tld' | urlize | safe }} #}
|
||||||
{% endmacro %}
|
{% 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 %}
|
{% endmacro %}
|
||||||
{% macro name(class='', text='Vorname Nachname') %}
|
|
||||||
<span class="{{ class }}">{{ text }}</span>
|
{% macro name(class = '', text = 'Vorname Nachname') %}
|
||||||
|
<span class="{{ class }}">{{ text }}</span>
|
||||||
{% endmacro %}
|
{% 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 %}
|
{% endmacro %}
|
||||||
{% macro brand(class='', name='Marke') %}
|
|
||||||
<div class="{{ class }}">
|
{% macro brand(class = '', name = 'Marke') %}
|
||||||
{# <img src="" alt="Brand logo"> #}
|
<div class="{{ class }}">
|
||||||
<svg
|
{# <img src="" alt="Brand logo"> #}
|
||||||
|
<svg
|
||||||
width="128"
|
width="128"
|
||||||
height="128"
|
height="128"
|
||||||
viewBox="0 0 128 128"
|
viewBox="0 0 128 128"
|
||||||
version="1.1"
|
version="1.1"
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
xmlns:svg="http://www.w3.org/2000/svg">
|
xmlns:svg="http://www.w3.org/2000/svg">
|
||||||
<g>
|
<g>
|
||||||
<rect
|
<rect
|
||||||
style="display:inline;fill:none;stroke:#ffffff;stroke-width:2;stroke-linecap:round;stroke-dasharray:none"
|
style="display:inline;fill:none;stroke:#ffffff;stroke-width:2;stroke-linecap:round;stroke-dasharray:none"
|
||||||
width="126"
|
width="126"
|
||||||
height="126"
|
height="126"
|
||||||
x="1"
|
x="1"
|
||||||
y="1" />
|
y="1"/>
|
||||||
<circle
|
<circle
|
||||||
style="fill:none;stroke:#ffffff;stroke-width:2;stroke-linecap:round;stroke-linejoin:bevel;stroke-dasharray:none"
|
style="fill:none;stroke:#ffffff;stroke-width:2;stroke-linecap:round;stroke-linejoin:bevel;stroke-dasharray:none"
|
||||||
cx="64"
|
cx="64"
|
||||||
cy="64"
|
cy="64"
|
||||||
r="63" />
|
r="63"/>
|
||||||
<path
|
<path
|
||||||
style="fill:none;stroke:#ffffff;stroke-width:2;stroke-linecap:round;stroke-linejoin:bevel;stroke-dasharray:none"
|
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>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
<h1>{{ name }}</h1>
|
<h1>{{ name }}</h1>
|
||||||
</div>
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
{% macro simple(index, data, content) %}
|
{% macro simple(index, data, content) %}
|
||||||
<article class="songbook_song">
|
<article class="songbook_song">
|
||||||
<header>
|
<header>
|
||||||
<h2>{{ data.title }}</h2>
|
<h2>{{ data.title }}</h2>
|
||||||
<h6>{{ data.releaseDate }}</h6>
|
<h6>{{ data.releaseDate }}</h6>
|
||||||
<p>{{ data.description }}</p>
|
<p>{{ data.description }}</p>
|
||||||
</header>
|
</header>
|
||||||
{# <pre class="pre_code"><code>{{ content }}</code></pre> #}
|
{# <pre class="pre_code"><code>{{ content }}</code></pre> #}
|
||||||
{{ content | safe }}
|
{{ content | safe }}
|
||||||
<footer>{{ index }}</footer>
|
<footer>{{ index }}</footer>
|
||||||
</article>
|
</article>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
@ -1,15 +1,14 @@
|
||||||
<!-- states.macro -->
|
{% macro coord(id, text = 'X: #, Y: ##') %}
|
||||||
{% macro coord(id, text='X: #, Y: ##') %}
|
<span id="{{ id }}">{{ text }}</span>
|
||||||
<span id="{{ id }}">{{ text }}</span>
|
|
||||||
{% endmacro %}
|
{% 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>
|
<span id="{{ id }}">{{ text }}</span><span>{{ postfix }}</span>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
{% macro date() %}
|
{% macro date() %}
|
||||||
<span id="{{ id }}">
|
<span id="{{ id }}">
|
||||||
<span id="day">Wochentag</span>,
|
<span id="day">Wochentag</span>,
|
||||||
<span id="dayNumb">##</span>.
|
<span id="dayNumb">##</span>.
|
||||||
<span id="month">Monat</span>
|
<span id="month">Monat</span>
|
||||||
<span id="year">####</span>
|
<span id="year">####</span>
|
||||||
</span>
|
</span>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue