Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.63: 404.html layout with base template does not work #6795

Closed
dukebarman opened this issue Jan 24, 2020 · 2 comments
Closed

0.63: 404.html layout with base template does not work #6795

dukebarman opened this issue Jan 24, 2020 · 2 comments

Comments

@dukebarman
Copy link

What version of Hugo are you using (hugo version)?

$ hugo version
Hugo Static Site Generator v0.63.1/extended darwin/amd64

Does this issue reproduce with the latest release?

Yes

I couldn't use {{ define "main" }} variable in 404.html layout. It generates a warning:

INFO 2020/01/24 17:17:56 found no layout file for "HTML" for "404": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.
INFO 2020/01/24 17:17:56 found no layout file for "HTML" for "404": You should create a template file which matches Hugo Layouts Lookup Rules for this combination.

If I delete this, it's okay but I need add own raw html code from main pages

@bep bep changed the title Doesn't generate 404.html 0.63: 404.html layout with base template does not work Jan 26, 2020
@bep bep added this to the v0.63.2 milestone Jan 26, 2020
@bep bep added the Bug label Jan 26, 2020
@bep bep closed this as completed in 8df5d76 Jan 26, 2020
bep added a commit that referenced this issue Jan 27, 2020
@kaushalmodi
Copy link
Contributor

@bep Thank you. I confirm this fix. 404.html now generates fine.

@github-actions
Copy link

github-actions bot commented Feb 8, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants