autophugo
autophugo copied to clipboard
phototitle and description not shown for directories starting with uppercase letter
Perhaps I haved missed something ... but this works:
title: "Einrichtung"
date: 2021-02-19T13:18:45+01:00
albumthumb: "interiors/minh-pham-OtXADkUh3-I-unsplash.jpg"
resources:
- src: interiors/alex-quezada-i3EBALw_t9o-unsplash.jpg
- src: interiors/gaelle-marcel-DFt3T5r_4FE-unsplash.jpg
- src: interiors/kari-shea-tOVmshavtoo-unsplash.jpg
phototitle: Grass cat
description: This cat stalks through the grass
- src: interiors/minh-pham-OtXADkUh3-I-unsplash.jpg
- src: interiors/oriento-xXNcpfbHeKM-unsplash.jpg
- src: interiors/r-architecture-W6YhRmR8nuA-unsplash.jpg
phototitle: Cool cat
description: One of the coolest cats
---
... and this doesn't work (directory start with uppercase letter; phototitle and description not shown):
title: "Nature"
date: 2021-02-19T13:34:21+01:00
albumthumb: "Nature/frederik-lower-tatFzQW0a3s-unsplash.jpg"
resources:
- src: Nature/frederik-lower-tatFzQW0a3s-unsplash.jpg
phototitle: Grass cat
description: This cat stalks through the grass
- src: Nature/geran-de-klerk-wYy3rvvgjAU-unsplash.jpg
phototitle: Grass cat
description: This cat stalks through the grass
---
Any idea? Is this a feature, bug or a misusing?
Hrm - I'm thinking it's related to this problem rhyst has reported. I can't find their github issue though, and am looking for more discussion on the problem.
https://discourse.gohugo.io/t/upper-case-letters-in-path-causing-match-to-fail/28069
This seems to be a bug in Hugo or a globbing library it uses - another user reported it a bit ago. I'm not a "Go" guy at all but when I get a chance I'll try to track it down and solve it up there.
Bug report: https://github.com/gohugoio/hugo/issues/7686