feat: Add macros
- New footer macros - New header macro - Use macros in partials
This commit is contained in:
parent
7f84235f08
commit
07f51e80a2
6 changed files with 56 additions and 23 deletions
23
source/templates/hippie/macros/_footer.njk
Normal file
23
source/templates/hippie/macros/_footer.njk
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{% macro status(email = 'admin@domain.tld', app = 'Application', version = 'ver.s.ion', system = 'System Name', domain = 'domain.tld:port') %}
|
||||
<footer class="pos_abs pin_bottom width_full">
|
||||
<address class="txt_center">Kontakt:
|
||||
<a class="lineLink" href="mailto:{{ email }}">{{ email }}</a>
|
||||
* Server:
|
||||
{{ app }}/{{ version }}
|
||||
({{ system }}) * Domain:
|
||||
{{ domain }}
|
||||
</address>
|
||||
</footer>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro pinned(pos = 'bottom') %}
|
||||
<footer class="pos_abs pin_{{ pos }} pin_right pin_left">
|
||||
<p class="txt_center">Unten fixiert</p>
|
||||
</footer>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro main() %}
|
||||
<footer class="footer_site">
|
||||
<div id="end"></div>
|
||||
</footer>
|
||||
{% endmacro %}
|
||||
5
source/templates/hippie/macros/_header.njk
Normal file
5
source/templates/hippie/macros/_header.njk
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{% macro main() %}
|
||||
<header class="header_site">
|
||||
<div id="begin"></div>
|
||||
</header>
|
||||
{% endmacro %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue