One page out of 15 in a section doesn't get rendered

Hugo extended 0.122.0 on macOS

I have this directory structure (excerpt)

photos
├── Streetart
│   ├── Mazara-Fliesen
│   │   ├── 14-Kacheln,-7-Omegas.jpg
│   │   ├── Abstrakt-rot-grün-gelb-blaue-Striche.jpg
│   │   ├── Abstrakte-Stadt-mit-Himmel-und-Sonne.jpg
│   │   ├── Alla-Kasba.jpg
…
│   │   ├── index.md
│   ├── Mulhouse
│   │   ├── something.jpg
│   │   ├── index.md
│   ├── Taranto
│   │   ├── something.jpg
│   │   ├── index.md
│   ├── _index.md
…
── _index.md
…

So, photos is a section and Streetart is a section within that. Streetart has 15 subdirectories, each with an index.md and a bunch of jpgs. All subdirectories but Mazara-Fliesen get rendered by my list template for photos:

{{ define "main" }}
<section class="section content" id="gallery-list">
  {{ .Content }}
  {{ range .Pages.ByTitle }}
    {{ if .Params.featured_image }}
      {{ partialCached "blog-summary" . .Permalink}}
    {{ end }}
  {{ end }}
</section>
{{ end }}

If I check the length of the .Pages in the template, it’s 14 for the Streetart section, while it should be 15. That makes me think that not the template but the directory is somehow borken – but what? Probably again something obvious to everyone but me :frowning:f

My repository: GitHub - chrillek/unterwegs

content/photos/Streetart/Mazara-Fliesen/index.md

date: "2024-03-17T18:42:38+02:00"
draft: true

Draft is true, and it seems like that is a future date. Is that intentional (i.e., should I be testing your site using the -DF flags)?

Well, I said that it’s something obvious to everyone but me. And there I was checking for duplicate page names and what not. Thanks a bunch!

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.