{% extends 'partials/base.html.twig' %} {% block content %} {% set language = grav.language %} {% set lang = language.enabled ? (language.active ?: language.default) : null %} {% set count = 1 %} {% for entry in sitemap %} {% if lang is null or entry.lang == lang %} {% set count = count + 1 %} {% endif %} {% endfor %}
# {{ 'PLUGIN_SITEMAP.TITLE_TITLE'|t }} {{ 'PLUGIN_SITEMAP.TITLE_LOCATION'|t }} {{ 'PLUGIN_SITEMAP.TITLE_LASTMOD'|t }}
{{ count }} {{ entry.title ?: 'PLUGIN_SITEMAP.UNTITLED'|t }} {{ entry.location }} {{ entry.lastmod }}
{% endblock %}