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 · 4 comments · Fixed by #6792
Closed

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

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

Comments

@regisphilibert
Copy link
Member

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
Copy link
Member

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
Copy link
Member Author

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
Copy link
Member

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 as completed in #6792 Jan 23, 2020
bep added a commit that referenced this issue Jan 23, 2020
@github-actions
Copy link

github-actions bot commented Feb 9, 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 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants