Open tomceek opened 3 years ago
Seems to work for me in my testing. I guess I need more details.
Update March 2023 for any new readers: it definitely works in 1.7.4, but Im not sure why its picking up words in the content if content is set to false. It still picks up words that are tags (eg images tag and 'images' the word). But, still good. Ive put it in the page foot so that each post has its own set of 'suggested posts'.
The plugin stopped working after the 1.7 update. Probably, related to the changed path of the pages. Any help would be grateful.
{% for related_path, score in related_pages %}
{% set related = grav['pages'].get(related_path) %}
{% set related_image = related.media.images|first %}
{% if related %}
...