-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Template lookup order no longer finds layouts/_default/author.terms.html #12193
Comments
Interestingly, author.html works for individual author pages, but authors.html does not. Seems like they should probably either both work with S or both work without S or both work with either. |
I'm probably missing a key piece of this, but I am unable to reproduce the problem. Site config
Content
Layouts
Test site
|
Make a content/authors/_index.md and the bug will reproduce. |
Perfect. Thanks. This is very similar to #12146. Test casefunc TestFoo(t *testing.T) {
t.Parallel()
files := `
-- hugo.toml --
disableKinds = ['page','rss','section','sitemap']
[taxonomies]
author = 'authors'
-- layouts/_default/list.html --
{{ .Title }}|
-- layouts/_default/author.terms.html --
layouts/_default/author.terms.html
-- content/authors/_index.md --
---
title: Authors Page
---
`
b := hugolib.Test(t, files)
b.AssertFileExists("public/index.html", true)
b.AssertFileExists("public/authors/index.html", true)
b.AssertFileContent("public/authors/index.html", "layouts/_default/author.terms.html") // failing test
} |
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. |
My /authors/ page no longer uses the layouts/_defaults/author.terms.html layout with Hugo 123. Renaming the file to authors.terms.html fixes the issue, but the actual taxonomy is defined as
See #12174.
What version of Hugo are you using (
hugo version
)?Does this issue reproduce with the latest release?
Yes.
The text was updated successfully, but these errors were encountered: