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

Missing baseof error on use of `template` func in .63 #6790

Closed
regisphilibert opened this issue Jan 23, 2020 · 3 comments · Fixed by #6792
Closed

Missing baseof error on use of `template` func in .63 #6790

regisphilibert opened this issue Jan 23, 2020 · 3 comments · Fixed by #6792
Labels
Bug
Milestone

Comments

@regisphilibert
Copy link

@regisphilibert regisphilibert commented Jan 23, 2020

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

latest:

Hugo Static Site Generator v0.63.0-745DDCBB/extended darwin/amd64 BuildDate: 2020-01-23T12:45:55Z

Using the template function from an output format layout with no attached baseof, I get the following error:

Error: Error building site: [en] page "/Users/cheribibi/Boulot/projets/hugo/baseof-issue/content/blog/_index.md": failed to resolve template: no baseof layout found for "blog/list.json.json":

Here is a simple test repo: https://github.com/regisphilibert/gohugo-template-issue

Template in question is here

@regisphilibert regisphilibert changed the title Missing baseof error on use of `template` func Missing baseof error on use of `template` func in .63 Jan 23, 2020
@bep bep added this to the v0.63.1 milestone Jan 23, 2020
@bep

This comment has been minimized.

Copy link
Member

@bep bep commented Jan 23, 2020

I see why this fails, but when I "redid this" I assumed that this was how it always behaved. Are you saying that this did not fail in 0.62?

@regisphilibert

This comment has been minimized.

Copy link
Author

@regisphilibert regisphilibert commented Jan 23, 2020

Are you saying that this did not fail in 0.62

Yes. It never failed. I use this kind of "same file" template often and never thought the template function was bound to a matching baseof template being present.

@bep

This comment has been minimized.

Copy link
Member

@bep bep commented Jan 23, 2020

OK, I will fix it. Sorry ... :-)

@bep bep added the Bug label Jan 23, 2020
bep added a commit to bep/hugo that referenced this issue Jan 23, 2020
bep added a commit to bep/hugo that referenced this issue Jan 23, 2020
bep added a commit to bep/hugo that referenced this issue Jan 23, 2020
bep added a commit to bep/hugo that referenced this issue Jan 23, 2020
@bep bep closed this in #6792 Jan 23, 2020
bep added a commit that referenced this issue Jan 23, 2020
Fixes #6790
@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.

2 participants
You can’t perform that action at this time.