{% extends "base.html" %} {% import "macros/post.html" as post %} {% import "macros/posts.html" as posts %} {% import "macros/paginator.html" as paginator %} {% import "macros/header.html" as header %} {% block content %} {% for row in section.extra.home | default(value=[]) %}
{% for item in row %}
{% if item.title %} {{header::render(text=item.title)}} {% endif %} {% if item.section %} {% set articles = get_section(path=item.section~"/_index.md") %} {% set type = item.type | default(value='default') %} {% if item.rows %} {% set_global start = item.start %} {% for row in item.rows %} {% set end = start + row %} {% set pages = articles.pages | slice(start=start, end=end) %} {{posts::render(pages=pages, type=type, row=row)}} {% set_global start = end %} {% endfor %} {% else %} {% set pages = articles.pages | slice(start=item.start, end=item.end) %} {% set row = item.row | default(value=0) %} {{posts::render(pages=pages, type=type, row=row)}} {% endif %} {% else %} {% for i in item.items %}
{% if i.img %} {{i.info | default(value='')}} {% endif %}
{% if i.title %}
{{i.title}}
{% endif %} {% if i.description %}

{{i.description}}

{% endif %} {% if i.label or i.icon %} {{i.label}}{% if i.icon %} {% endif %} {% endif %}
{% endfor %} {% endif %}
{% endfor %}
{% endfor %} {% if section.title %}

{{section.title}}

{% endif %} {% if section.description %}

{{section.description}}

{% endif %} {% if section.content %}
{{section.content | safe}}
{% endif %} {% for page in paginator.pages %} {{post::render(page=page)}} {% endfor %} {{paginator::render(paginator=paginator)}} {% if section.extra.tags %} {{header::render(text=config.extra.tags)}} {% set tags = get_taxonomy(kind="tags") %} {% for item in tags.items %} {{item.name}} | {% endfor %} {% endif %} {% endblock %}