Last Page not always rendered

#1

Hello,
I have two folders (/public/bilder and /public/aquarelle) rendered by hugo.

With the following structure:

aquarelle
aquarelle/20190115/

aquarelle/20190130/
aquarelle/20190130/image_01.jpg
aquarelle/20190130/image_01_klein.jpg
aquarelle/20190130/image_01_thumbnail.jpg
aquarelle/20190130/image_01/
aquarelle/20190130/image_01/index.html

aquarelle/20190510/
aquarelle/20190510/image_09.jpg
aquarelle/20190510/image_09_klein.jpg
aquarelle/20190510/image_09_thumbnail.jpg
missing: aquarelle/20190510/image_09/
missing: aquarelle/20190510/image_09/index.html

also in the /public/aquarelle/index.html/index.xml the last picture is missing.

In the skeleton I have a layouts/list.hml:

{{ define "main" }}

<a>list.html</a>
  {{ range .Pages }}
       <a href="{{ .Permalink }}"><img src = "{{ .Params.PFAD }}_thumbnail.jpg"></a>
  {{ end }}

{{ end }}

I can not predict if the last page/image will be rendered

What do I do wrong?

#2

Hi there,

It’s difficult to say what is going wrong without more detail. If you have your code somewhere we can look at, that would make it easier to help; please see Requesting Help.

#3

Hi pontyfar,
here the source code: https://github.com/RJGhugo/fotoseite

#4

You don’t have content/aquarelle/20190510/image_09/index.md (or _index.md), so Hugo does not generate public/aquarelle/20190510/image_09/...

Hugo generates pages based on your content structure: https://gohugo.io/content-management/organization/

#5

Thank you pointyfar,

somehow I missed to verify the content part.

The content and static part is generated by a script. It seems, that this script is working fine for 99% of all the cases. I shall have a deeper look at it…

#6

Hello pointyfar,

I have fixed the content issue.

Now there is a problem in https://github.com/RJGhugo/fotoseite/tree/master/public/bilder/20190512. There are some folders missing. These folder are rendered normaly by HUGO it self.

Thanks and Greetings.