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 · 1 comment
Closed

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

dukebarman opened this issue Jan 24, 2020 · 1 comment
Labels
Bug
Milestone

Comments

@dukebarman
Copy link

@dukebarman dukebarman commented Jan 24, 2020

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 in 8df5d76 Jan 26, 2020
bep added a commit that referenced this issue Jan 27, 2020
Fixes #6795
@kaushalmodi

This comment has been minimized.

Copy link
Member

@kaushalmodi kaushalmodi commented Jan 27, 2020

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

@fmotrifork fmotrifork mentioned this issue Feb 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.