diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-08-25 22:51:38 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-08-25 23:17:26 +0200 |
commit | 5f667f8796fb051e110449dd8d775e947cc1801e (patch) | |
tree | 1aa808b802c98ee568e9c1b1369532aca1204672 /hugolib | |
parent | e1becf1dfe31bec65eca585ac66a2d10f1651e42 (diff) | |
download | hugo-5f667f8796fb051e110449dd8d775e947cc1801e.tar.gz hugo-5f667f8796fb051e110449dd8d775e947cc1801e.zip |
Fix missing method NameNormalized panic
Closes #12795
Diffstat (limited to 'hugolib')
-rw-r--r-- | hugolib/content_map_page.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/content_map_page.go b/hugolib/content_map_page.go index e3b29f186..c3f06a592 100644 --- a/hugolib/content_map_page.go +++ b/hugolib/content_map_page.go @@ -560,7 +560,7 @@ func (m *pageMap) getOrCreateResourcesForPage(ps *pageState) resource.Resources for _, r := range res2 { var found bool for _, r2 := range res { - if r2.(resource.NameNormalizedProvider).NameNormalized() == r.(resource.NameNormalizedProvider).NameNormalized() { + if resource.NameNormalizedOrName(r2) == resource.NameNormalizedOrName(r) { found = true break } |