relatedpages.html.twig 600 B

123456789101112131415
  1. <ul class="related-pages menu">
  2. {% for related_path, score in related_pages %}
  3. {% set related = grav['pages'].get(related_path) %}
  4. {% if related %}
  5. <li class="menu-item">
  6. {% if config.plugins.relatedpages.show_score %}
  7. <div class="menu-badge">
  8. <span class="label lable-primary">{{ score }}</span>
  9. </div>
  10. {% endif %}
  11. <a href="{{ related.url }}" title="{{ related.title }}">{{ related.title }}</a>
  12. </li>
  13. {% endif %}
  14. {% endfor %}
  15. </ul>