{% extends "base.html" %} {% load i18n %} {% load ravix_theme %} {% block body_class %}page-home{% endblock %} {% block content %} {% with first=sections.0 %}{% if first.type != "hero" %}

{{ site.name }}

{% endif %}{% endwith %} {% for s in sections %} {% if s.type == "hero" %}
{% if forloop.first %}

{{ s.title }}

{% else %}

{{ s.title }}

{% endif %} {% if s.subtitle %}

{{ s.subtitle }}

{% endif %} {% if s.body_html %}
{{ s.body_html }}
{% endif %} {% if s.buttons %}

{% for b in s.buttons %}{{ b.label }}{% endfor %}

{% endif %}
{% elif s.type == "features" %}

{% if s.title %}{{ s.title }}{% else %}{% trans "Features" %}{% endif %}

{% if s.subtitle %}

{{ s.subtitle }}

{% endif %}
{% elif s.type == "latest_posts" or s.type == "category_posts" %}

{% if s.title %}{{ s.title }}{% else %}{% trans "Posts" %}{% endif %}

{% if s.button_url %}{% if s.button_label %}{{ s.button_label }}{% else %}{% trans "View all" %}{% endif %}{% endif %}
{% for post in s.posts %}{% include "partials/post_row.html" with post=post hlevel=3 %}{% endfor %}
{% elif s.type == "categories" %}

{% if s.title %}{{ s.title }}{% else %}{% trans "Content categories" %}{% endif %}

{% elif s.type == "page" %}

{{ s.title }}

{{ s.page.body_html }}
{% elif s.type == "text" %}
{% if s.title %}

{{ s.title }}

{% endif %} {% if s.subtitle %}

{{ s.subtitle }}

{% endif %}
{{ s.body_html }}
{% if s.buttons %}

{% for b in s.buttons %}{{ b.label }}{% endfor %}

{% endif %}
{% endif %} {% empty %}

{% trans "The home page has no sections yet." %}

{% if viewer.customize_url %}

{% trans "Set up the home page sections" %}

{% endif %}
{% endfor %} {% endblock %}