in content/opinions/peribreakpoints, I have the following files:
after.html
before.html
index.md
peribreakpoints-after-dark.png
peribreakpoints-after-dark.webp
peribreakpoints-after-light.png
peribreakpoints-after-light.webp
peribreakpoints-before-dark.png
peribreakpoints-before-dark.webp
peribreakpoints-before-light.png
peribreakpoints-before-light.webp
Normally, everything shows up on the site, including after.html and before.html. However, after running hugo for the first time in a long time, after.html and before.html aren’t getting copied to the directory where they usually get copied to anymore. This means that people who visit those pages are getting 404s now.
This is what hugo version gets me:
hugo v0.123.3-a75a659f6fc0cb3a52b2b2ba666a81f79a459376+extended darwin/arm64 BuildDate=2024-02-23T17:09:20Z VendorInfo=brew
In index.md, I’m using the simplest links in my Markdown file that could possibly work — <a href='before.html'>. It’s in a <figure>, so it’s not like I can use a Markdown-style link:
<figure>
<a href='before.html'>
<picture>
<source srcset='peribreakpoints-before-dark.webp'
media='(prefers-color-scheme: dark)'
type='image/webp'>
<source srcset='peribreakpoints-before-light.webp'
media='(prefers-color-scheme: light)'
type='image/webp'>
<source srcset='peribreakpoints-before-light.png'
media='(prefers-color-scheme: light)'
type='image/png'>
<img src='peribreakpoints-before-dark.png' alt='A screenshot of a browser displaying the need for a peribreakpoint'>
</picture>
</a>
<!-- … -->
I had a look at Build options | Hugo and I don’t appear to need any special build settings to reenable this sort of behavior. I don’t have a build thing in my YAML front matter, and the default for publishResources is true, anyway. I also had a look at Page resources | Hugo and it’s not obvious that I’ve missed something.
…does anyone have any idea why after.html and before.html aren’t getting copied to public/ like they used to?
Thanks in advance.