docs/templates/section.html
Che e390130d26 Remove unnecessary white space
Adding a "-" before the "%}" removes white space after the statement.

Source: https://tera.netlify.app/docs#whitespace-control
2022-06-02 21:35:30 -04:00

22 lines
525 B
HTML

{% extends "index.html" %}
{% block title %} {{ config.title }} | {{ section.title }} {% endblock title %}
{% block content %}
{% if section.word_count > 0 -%}
{{ section.content }}
{% else -%}
<h1 class="title">
{{ section.title }}
</h1>
Pages:
<ul>
{% for page in section.pages -%}
<li><a href="{{ page.permalink | safe }}">{{ page.title }}</a></li>
{% endfor -%}
</ul>
{% endif -%}
{% endblock content %}