Hi, Im trying to work out how to fix an issue I have with Recent Blog Posts. Up until recently I have been using Hugo 0.55 and I only needed to change the theme slightly to make it work with my setup.
I altered line 10 of the file themes/hugo-strata-theme/layouts/partials/recent-posts.html
from
{{ range first 5 (where .Data.Pages "Section" "posts") }}
to
{{ range first 5 (where .Data.Pages "Section" "blog") }}
and it worked perfectly.
I recently upgraded to 0.66.2 and now this no longer works, also changing it back to "posts" doesnt work
This must be something to do with how I have my site setup, can someone show me where Im going wrong?
Hi, Im trying to work out how to fix an issue I have with Recent Blog Posts. Up until recently I have been using Hugo 0.55 and I only needed to change the theme slightly to make it work with my setup.
I altered line 10 of the file themes/hugo-strata-theme/layouts/partials/recent-posts.html
from
{{ range first 5 (where .Data.Pages "Section" "posts") }}
to
{{ range first 5 (where .Data.Pages "Section" "blog") }}
and it worked perfectly.
I recently upgraded to 0.66.2 and now this no longer works, also changing it back to "posts" doesnt work
This must be something to do with how I have my site setup, can someone show me where Im going wrong?