I have a file called
themes/<my-theme>/layouts/ but running hugo doesn’t result in a
/public/. Shouldn’t it? The docs are unclear on whether custom 404 pages are possible for themes but I’ve seen them used in other themes in the same way.
Apparently there were issues with 404 page generation in earlier versions (here and here) but I am on version 0.70.0 so it should be solved.
If your theme is active, it should work (and works for me on 0.70.0).
Thanks for the reply. Knowing that it should work helped me narrow the issue down and I have now solved it.
I should have tried this before, but just running
hugo does generate the page. What I was doing until now was just running
hugo server -D, which, in my defense, has updated my page properly this far.
I’ve tested with
hugo server -D, and mine works, so there still may be an issue with yours. Anyway, glad you’ve got it sorted somewhat.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.