[TASK] add partials

This commit is contained in:
TLRZ Seyfferth 2020-05-06 19:26:55 +02:00
parent 32d0950f4c
commit d3814c7251
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,11 @@
{% block blogroll %}
<ul class="row">
<li class="col s12">die neuesten Blogeinträge:</li>
{% for page in pages("blog", depth=2) | sort_by( 'time' ) | reverse %}
<li class="col s12">
<a class="deep-orange-text"
href="{{ page.url }}">{{ page.title }}</a>
</li>
{% endfor %}
</ul>
{% endblock %}

View File

@ -0,0 +1,20 @@
{% block images %}
<div class="container">
{% if images | length > 1 %}
<div class="carousel">
{% for image in images %}
<a href="{{ image.url }}"
class="carousel-item">
<img src="{{ image.url }}"
alt="{{ image.alt }}">
</a>
{% endfor %}
</div>
{% else %}
<img src="{{ images.0.url }}"
alt="{{ images.0.alt }}"
class="materialboxed depth-1"
{{ images.0.size }}>
{% endif %}
</div>
{% endblock %}