webseite-grav/themes/quark/templates/partials/relatedpages.html.twig

15 lines
600 B
Twig
Raw Normal View History

2021-04-30 11:23:26 +02:00
<ul class="related-pages menu">
{% for related_path, score in related_pages %}
{% set related = grav['pages'].get(related_path) %}
{% if related %}
<li class="menu-item">
{% if config.plugins.relatedpages.show_score %}
<div class="menu-badge">
<span class="label lable-primary">{{ score }}</span>
</div>
{% endif %}
<a href="{{ related.url }}" title="{{ related.title }}">{{ related.title }}</a>
</li>
{% endif %}
{% endfor %}
</ul>