Closed Cynosure-North closed 23 minutes ago
https://gohugo.io/templates/base/#override-the-base-template
Code that you put outside the block definitions can break your layout. This even includes HTML comments. For example...
See @jmooring 's comment. This is unfortunate, but this is a limitation of Go templates, and not something we can fix.
What version of Hugo are you using (
hugo version
)?I've bisected with past releases and this error seems to have been introduced in release 0.123.0
Does this issue reproduce with the latest release?
Yes
Issue
Hugo does not use the base template overrides for 404 pages, resulting in missing or incomplete pages.
The example below shows the define block being ignored.
layouts/404.html
public/404.html
\ \ This example shows there is no 404.html generated in the public folder
layouts/404.html