digitalcraftsman / hugo-strata-theme

Port of HTML5UP's Strata theme to Hugo
Other
143 stars 92 forks source link

Recent blog posts #64

Open abradshaw opened 4 years ago

abradshaw commented 4 years ago

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?