Section being ignored

Hello Everyone!

I am creating a hugo site, with a blog section on it, righ now I am using a custom permalink structure for that section. in config.toml I have this

  blog = "/:section/:year/:month/:day/:title/"

with following content under my blog content


The front matter of my file under blog is like this

  title: "Blog" 
  date: 2020-04-07T20:35:10-06:00
  draft: false
  phrase: "A phrase for the list template"
  banner_image: ""

In my blog/list.html template I have this

{{ define "main" }}

    {{ .Title }}

    {{ .Date }}

    {{ .Params.phrase }}
     {{ range .Pages }}
              {{ .Content }}          
      {{ end }}
{{ end }}

The problem lies that the front matter data from is completely ignored, in fact this data is use as it were another post under the dates folder on the resulting public file, but this page does not appear when ranging the pages on the list template. As you can see on the code for list.html, I have a .Date variable but the resulting date is from the most recent post, no the one from the front matter file ., .Title is just the name of the section. but the .Params.phrase is not rendered, I set all the dates of the posts to be after the one in but still the issue remains,

I tried eliminating the custom permalink for the section and the issue persists

Only If I use the basic structure


The front matter for blog/ was rendered

I am using

hugo v0.84.0-2C4689F7B+extended windows/amd64 BuildDate=2021-06-18T17:14:27Z VendorInfo=gohugoio

Thank you in advance.

Can you please share your repository? I’d like to see if I can reproduce the problem locally.

Hello and thank you this is the repository

Solved I forgot I have a taxonomies, file under default, with the taxonomines again declared on config.toml

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