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.