Front matter not rendered (hugo-coder)

Hello everyone,
I’m currently doing a simple blog using Hugo-Coder theme
My issue is i am not able to makes the font matter to render.

what i mean is i want to display some informations just behind the title such as publication date, categories and tags.

you can see an example of what i have and what i want on the following image:

Context :
Theme : Hugo-Coder (last version)
Env : hugo v0.139.3-2f6864387cd31b975914e8373d4bf38bddbd47bc+extended
windows/amd64 BuildDate=2024-11-29T15:36:56Z VendorInfo=gohugoio
GOOS=“windows”
GOARCH=“amd64”
GOVERSION=“go1.23.2”
githubcom/sass/libsass=“3.6.6”
githubcom/webmproject/libwebp=“v1.3.2”
I will use tags element as an example for this post which is present by default.

Additional informations :

  • tried to use all three formats : toml , yaml and json
  • tried different browsers
  • Page used for tests : mywebsite(dot)com/posts/test/
  • Taxonomy looks to works fine (acess to /tags/ page with list of all tags as example)

by looking into the layout code, i found out the logic to display this tag font matter is here :

so i made a shortcode for debugging purpose:

<p>[debug] tags: {{ .Page.Params.tags }}</p>
<p>[debug] tags: {{ .Page.GetTerms "tags" }}</p>

used it this way : {{< fontm >}}
i got the following output rendered :

[debug] tags: [hugo markdown css html T]
[debug] tags: Pages(5)

As you can see, i got result so it should in theory render this tags parameter.

The entire code for this project can be found on this address :

Thanks for reading.
Feel free to ask for more informations.

I would recommend to share your code and frontmatter values that do not work.

For the page, i was simply using a sample given by the theme creator,
you can find the code here :

i also made custom css for main page (for margins + custom icon):

mmh, i’m sorry, I’m of no help here.

I won’t try to build something up including config, templates, content pages and the frontmater params trying to get ist failing at the same place as yours - which is stull not clear to me.

have a look at Requesting Help. maybe you can elaborate on your problem description, show what you have and what you expect.

usually copying code sippets around without the context is not pushing forward.

The post was updated to gives a clearer explanation of the issue.
Also added a link to the repo to see the entire code of the project.

we get close: Looks like you want to have the layout applied to the Posts section also to your custom Section writeups.

The Coder Theme uses the frontmatter parameter type to select the template.

add this to your pages frontmatter:

"type": "posts"

or move the page to content/posts

it worked thanks for your help

ur welcome.

maybe also a takeaway for your next issue.

in fact that was mor a layouting issue than frontmatter

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.