# \#possible-bug

**URL:** https://discourse.gohugo.io/tag/possible-bug/28.md

[Latest](https://discourse.gohugo.io/latest.md) · [Categories](https://discourse.gohugo.io/categories.md) · [Tags](https://discourse.gohugo.io/tags.md)

---

## [Naming collisions in new template system (v0.146 and up)](https://discourse.gohugo.io/t/naming-collisions-in-new-template-system-v0-146-and-up/55207)

<div class="topic-metadata">

**Author:** [@jhvanderschee](https://discourse.gohugo.io/u/jhvanderschee)\
**Replies:** 1\
**Last updated:** [July 2, 2025, 12:59pm UTC](https://discourse.gohugo.io/t/naming-collisions-in-new-template-system-v0-146-and-up/55207 "2025-07-02T12:59:15Z")

</div>

The new template structure in v0.146.0 can lead to naming collisions. Suppose we have a section called ‘services’ and we have a page ‘services.md’ in the root. The ‘services.md’ file in the root will get the ‘page.html’…

---

## [New template system ignores layout for section index pages](https://discourse.gohugo.io/t/new-template-system-ignores-layout-for-section-index-pages/54313)

<div class="topic-metadata">

**Author:** [@tastapod](https://discourse.gohugo.io/u/tastapod)\
**Replies:** 2\
**Last updated:** [April 13, 2025, 6:36pm UTC](https://discourse.gohugo.io/t/new-template-system-ignores-layout-for-section-index-pages/54313 "2025-04-13T18:36:56Z")

</div>

To add to the lookup posts, I have created a minimal site+theme that demonstrates what I think is a common use case. (All my template knowledge has come from cribbing Hugo themes over the years.) I have three sections: u…

---

## [Duplicated path in RSS(index.xml) when using RelPermalink in Image render hooks](https://discourse.gohugo.io/t/duplicated-path-in-rss-index-xml-when-using-relpermalink-in-image-render-hooks/53340)

<div class="topic-metadata">

**Author:** [@mitra](https://discourse.gohugo.io/u/mitra)\
**Replies:** 11\
**Last updated:** [February 3, 2025, 7:21pm UTC](https://discourse.gohugo.io/t/duplicated-path-in-rss-index-xml-when-using-relpermalink-in-image-render-hooks/53340 "2025-02-03T19:21:15Z")

</div>

My blog’s content structure looks like this: - content - posts - hello\_world - index.md - foo.jpg Now I can easily reference images in index.md like this: !\[foo\](foo.jpg) But the problem is that whe…

---

## [Empty li item in toc is generated](https://discourse.gohugo.io/t/empty-li-item-in-toc-is-generated/50665)

<div class="topic-metadata">

**Author:** [@Prajkt\_Yeole](https://discourse.gohugo.io/u/Prajkt_Yeole)\
**Replies:** 3\
**Last updated:** [July 12, 2024, 5:05pm UTC](https://discourse.gohugo.io/t/empty-li-item-in-toc-is-generated/50665 "2024-07-12T17:05:38Z")

</div>

An empty li is generated in the TOC. I have set the start level to 2 and end level to 3. Once i put h4 above h3 it generates an empty li tag in toc. hugo.toml \[markup\] \[markup.tableOfContents\] endLevel = 3 st…

---

## [The article archive disappears when adding Paginator to the \<head\>](https://discourse.gohugo.io/t/the-article-archive-disappears-when-adding-paginator-to-the-head/46878)

<div class="topic-metadata">

**Author:** [@KitsuneSolar](https://discourse.gohugo.io/u/KitsuneSolar)\
**Replies:** 5\
**Last updated:** [October 30, 2023, 5:25pm UTC](https://discourse.gohugo.io/t/the-article-archive-disappears-when-adding-paginator-to-the-head/46878 "2023-10-30T17:25:37Z")

</div>

Hugo: v0.120.0 Hello everyone! I am making a meta tag for page navigation (first, last, prev, next). When I add the construction: {{ with ($.Paginator) }} {{ $canonical = ((.URL) | absURL) }} \<link rel="first" …

---

## [Rendering of markdown lists depends on content](https://discourse.gohugo.io/t/rendering-of-markdown-lists-depends-on-content/43715)

<div class="topic-metadata">

**Author:** [@cshoredaniel](https://discourse.gohugo.io/u/cshoredaniel)\
**Replies:** 1\
**Last updated:** [April 2, 2023, 9:25am UTC](https://discourse.gohugo.io/t/rendering-of-markdown-lists-depends-on-content/43715 "2023-04-02T09:25:05Z")

</div>

This is a bit of placeholder as I haven’t had a chance to check the Common mark spec, or create a test repo, but I have noticed the following behaviour: TL;DR Notice \<li\>\<p\>text vs \<li\>text depending on the content Dis…

---

## [If I mention page.Sections in a partial invoked for taxonomy.html, page.Pages is empty unless I print it](https://discourse.gohugo.io/t/if-i-mention-page-sections-in-a-partial-invoked-for-taxonomy-html-page-pages-is-empty-unless-i-print-it/43522)

<div class="topic-metadata">

**Author:** [@will](https://discourse.gohugo.io/u/will)\
**Replies:** 7\
**Last updated:** [March 30, 2023, 12:54am UTC](https://discourse.gohugo.io/t/if-i-mention-page-sections-in-a-partial-invoked-for-taxonomy-html-page-pages-is-empty-unless-i-print-it/43522 "2023-03-30T00:54:46Z")

</div>

This is a weird one. Seems like a bug to me. Try it yourself: Download GitHub - willfaught/paige: Powerful, pliable pixel perfection. An advanced Hugo theme., “sections” branch. Run the exampleSite. The /series/ page …

---

## [imageConfig vs fileExists workaround](https://discourse.gohugo.io/t/imageconfig-vs-fileexists-workaround/43476)

<div class="topic-metadata">

**Author:** [@cshoredaniel](https://discourse.gohugo.io/u/cshoredaniel)\
**Replies:** 3\
**Last updated:** [March 16, 2023, 7:55pm UTC](https://discourse.gohugo.io/t/imageconfig-vs-fileexists-workaround/43476 "2023-03-16T19:55:02Z")

</div>

I have concern with the following behaviour of imageConfig vs fileExists and give a workaround: The issue TL;DR fileExists looks in the theme’s static directory as well as project root static dir but imageConfig only lo…

---

## [Hugo Could not render org](https://discourse.gohugo.io/t/hugo-could-not-render-org/42932)

<div class="topic-metadata">

**Author:** [@tianheg](https://discourse.gohugo.io/u/tianheg)\
**Replies:** 17\
**Last updated:** [March 14, 2023, 1:23am UTC](https://discourse.gohugo.io/t/hugo-could-not-render-org/42932 "2023-03-14T01:23:48Z")

</div>

Sometimes when building my hugo blog, it will fail and display error: ERROR 2023/02/12 08:48:55 Could not render org: could not write output: runtime error: invalid memory address or nil pointer dereference. Using unren…

---

## [\`Lastmod\` is recursive on Page Bundles?!](https://discourse.gohugo.io/t/lastmod-is-recursive-on-page-bundles/43329)

<div class="topic-metadata">

**Author:** [@jbirnick](https://discourse.gohugo.io/u/jbirnick)\
**Replies:** 13\
**Last updated:** [March 6, 2023, 5:13pm UTC](https://discourse.gohugo.io/t/lastmod-is-recursive-on-page-bundles/43329 "2023-03-06T17:13:07Z")

</div>

My content directory structure is: \_index.md posts/ \_index.md post1/ index.md post2/ index.md post3/ index.md For the three posts I set publishDate in the front matter, because I want to display thi…

---

## [404 pages on localhost for multilingual site failing](https://discourse.gohugo.io/t/404-pages-on-localhost-for-multilingual-site-failing/40568)

<div class="topic-metadata">

**Author:** [@tut](https://discourse.gohugo.io/u/tut)\
**Replies:** 19\
**Last updated:** [September 23, 2022, 6:57am UTC](https://discourse.gohugo.io/t/404-pages-on-localhost-for-multilingual-site-failing/40568 "2022-09-23T06:57:11Z")

</div>

The recent update to allow custom 404 pages in localhost only shows the default language’s 404 page in translated sections. Is this by design?

---

## [Content View Lookup Order](https://discourse.gohugo.io/t/content-view-lookup-order/40414)

<div class="topic-metadata">

**Author:** [@gridfire](https://discourse.gohugo.io/u/gridfire)\
**Replies:** 3\
**Last updated:** [September 7, 2022, 3:34pm UTC](https://discourse.gohugo.io/t/content-view-lookup-order/40414 "2022-09-07T15:34:30Z")

</div>

It appears that the content view lookup order documented at Content View Templates | Hugo doesn’t reflect real-life behavior. Concretely, content views using the 1st pattern (/layouts/\<TYPE\>/\<VIEW\>.html) are always igno…

---

## [.Page.RenderString expands shortcodes in inline code blocks](https://discourse.gohugo.io/t/page-renderstring-expands-shortcodes-in-inline-code-blocks/39313)

<div class="topic-metadata">

**Author:** [@cshoredaniel](https://discourse.gohugo.io/u/cshoredaniel)\
**Replies:** 2\
**Last updated:** [June 30, 2022, 8:34am UTC](https://discourse.gohugo.io/t/page-renderstring-expands-shortcodes-in-inline-code-blocks/39313 "2022-06-30T08:34:40Z")

</div>

This post is a placeholder until I get time to do a proper bug report with minimal test case and all, but I thought I would give a heads up and see if anyone else has run across this (yet). Given a shortcode like: {{- …

---

## [With hugo --gc, panic: Readdirnames with positive n not implemented](https://discourse.gohugo.io/t/with-hugo-gc-panic-readdirnames-with-positive-n-not-implemented/38220)

<div class="topic-metadata">

**Author:** [@cshoredaniel](https://discourse.gohugo.io/u/cshoredaniel)\
**Replies:** 2\
**Last updated:** [April 16, 2022, 4:45am UTC](https://discourse.gohugo.io/t/with-hugo-gc-panic-readdirnames-with-positive-n-not-implemented/38220 "2022-04-16T04:45:45Z")

</div>

@bep @jmooring Known issue or do you need me to do up a test case, and more details, etc? Start building sites … hugo v0.97.0-c07f3626e7c8160943591f4d209977efa02c3dca+extended linux/amd64 BuildDate=2022-04-14T08:45:07Z…

---

## [Footnotes: generates a section without heading causing validation errors](https://discourse.gohugo.io/t/footnotes-generates-a-section-without-heading-causing-validation-errors/38088)

<div class="topic-metadata">

**Author:** [@cshoredaniel](https://discourse.gohugo.io/u/cshoredaniel)\
**Replies:** 0\
**Last updated:** [April 7, 2022, 9:07pm UTC](https://discourse.gohugo.io/t/footnotes-generates-a-section-without-heading-causing-validation-errors/38088 "2022-04-07T21:07:41Z")

</div>

I’ve submitted Footnotes: generates a section without heading causing validation warning · Issue #9756 · gohugoio/hugo · GitHub and am trying to make sure I put all things in the right spots. I’m working backwards a bit …

---

## [Multi-language images and page bundles](https://discourse.gohugo.io/t/multi-language-images-and-page-bundles/37325)

<div class="topic-metadata">

**Author:** [@vga](https://discourse.gohugo.io/u/vga)\
**Replies:** 9\
**Last updated:** [February 25, 2022, 10:18pm UTC](https://discourse.gohugo.io/t/multi-language-images-and-page-bundles/37325 "2022-02-25T22:18:55Z")

</div>

We have a number of simple multi-language sites. There are few pages, and we like to keep the directory structure as flat as possible. Language-code appended files fit perfect for this project! (index.md, index.es.md, …

---

## [0.92: New warning when section has no index](https://discourse.gohugo.io/t/0-92-new-warning-when-section-has-no-index/36590)

<div class="topic-metadata">

**Author:** [@cshoredaniel](https://discourse.gohugo.io/u/cshoredaniel)\
**Replies:** 10\
**Last updated:** [January 27, 2022, 3:56pm UTC](https://discourse.gohugo.io/t/0-92-new-warning-when-section-has-no-index/36590 "2022-01-27T15:56:23Z")

</div>

@bep I think I found a bug… Even though I have no references to .File.Path or .Path in my layouts I am getting: Start building sites … hugo v0.92.0-B3549403+extended linux/amd64 BuildDate=2022-01-12T08:23:18Z VendorIn…
