{% if result %}
YAML Linting: Found {{ result|length }} linting errors
{% for path, error in result %} {% set page_path = base_path ~ (path|pathinfo).dirname %} {% set page = grav.pages.get(page_path) %} {% endfor %}
{% if page.url %} {{ page.route }} {% else %} {{ path }} {% endif %} {{ error }}
{% else %}
YAML Linting: No errors found.
{% endif %}