I’m working on this site, the issue I’m having is that every file in the content directory is added to the main page list list.html and it’s associated pagination.
I’ve come across two potential fixes, but both are giving me issues.
Insert {{ if .PublishDate }} after {{ range which works, but the paginator is still listing as if it’s not looking at the if statement (which makes sense as it comes after). I’ve tried messing around with $index and $element, and throwing if and where statements around but can’t seem to get anything working. The ‘post break’ here is on page 8.
Insert a where .Data.Pages "Type" "posts" (found on this site) which filters EXACTLY how I want it, but gives me a weird posts submenu that I need to click into to see my post list. In this example, the ‘post break’ is on page 5.
Thanks, your code worked absolutely flawlessly and did exactly what I wanted it to. I thought the example was leaning more towards config edits vs hard coding options in a theme, my mistake.