Related Pages Plugin with image

Hi, I modified the Related Pages Plugin to display an image of the related posts.

An example can be seen here: http://posits.skn1.com/android-aplicaciones-sin-google-play

In user/themes/antimatter/templates/partials I created the file relatedpages.html.twig with this code:
— html
{% for related_path, score in related_pages %}
{% set related = grav[‘pages’].get(related_path) %}
{% if related %}
{% if config.plugins.relatedpages.show_score %}
{{ score }}
{% endif %}



{% set bannerrelated = related.media.images|first %}
{{ bannerrelated.cropZoom(150,150).html }}

{{ related.title }}



{% endif %}
{% endfor %}
And then I customized the style custom.css to leave it as is.

Greetings (sorry for my English, I speak Spanish).
1 Like

More details here: Grav: Plugin de entradas relacionadas con imagen