Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin stopped working after 1.7 update #27

Open
tomceek opened this issue Feb 9, 2021 · 2 comments
Open

Plugin stopped working after 1.7 update #27

tomceek opened this issue Feb 9, 2021 · 2 comments

Comments

@tomceek
Copy link

tomceek commented Feb 9, 2021

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 %}
...

@rhukster
Copy link
Member

Seems to work for me in my testing. I guess I need more details.

@Penworks
Copy link

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'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants