Content pages are not being picked up

Hi I’m pulling my hair out trying to convert my website from jekyll to hugo.

I’ve found multiple similar issues but following them hasn’t helped (but I can’t include links since I’m a new user)

I have my files in content/project and I have a layouts/_default/list.html and layouts/project/list.html and layouts/project/single.html:

> tree -I 'node_modules|public|assets'
.
├── LICENSE
├── README.md
├── config.toml
├── content
│   ├── home
│   │   └── _index.md
│   └── project
│       ├── _index.md
│       ├── dep_viz.md
│       ├── elixir_ls.md
│       ├── exsync.md
│       ├── hawaii_campaign_spending.md
│       ├── lsp_proxy.md
│       ├── my-first-project.md
│       ├── my_new.md
│       ├── power_ballot.md
│       ├── scenic_asteroids.md
│       └── strive_hi.md
├── go.mod
├── hugo_stats.json
├── layouts
│   ├── _default
│   │   ├── baseof.html
│   │   └── list.html
│   ├── index.html
│   └── project
│       ├── list.html
│       └── single.html
├── netlify.toml
├── package-lock.json
├── package.hugo.json
├── package.json
├── postcss.config.js
├── resources
│   └── _gen
└── tailwind.config.js

When I run hugo --verbose I see that 12 files are processed, however only 3 pages are emitted (which I think are index.html index.xml sitemap.xml)

Here is my git repository: GitHub - axelson/hugo_repro (the code is based on GitHub - bep/hugo-starter-tailwind-basic: A basic and simple to set up Hugo with TailwindCSS starter project.)

Can anyone help me figure out what I’m doing wrong?

> hugo env
hugo v0.133.1+extended darwin/arm64 BuildDate=2024-08-26T13:58:46Z VendorInfo=brew
GOOS="darwin"
GOARCH="arm64"
GOVERSION="go1.23.0"
github.com/sass/libsass="3.6.5"
github.com/webmproject/libwebp="v1.3.2"

Why are you disabling these page kinds?

disableKinds = ["page", "section", "taxonomy", "term"]

Although not related to your problem, there’s no need to set these in your front matter:

layout: default
section: "projects"
1 Like

Ah, that was it! Thank you so much.

I got that line from hugo-starter-tailwind-basic/config.toml at v2.1.0 · bep/hugo-starter-tailwind-basic · GitHub probably because that project is both a plugin and an actual project.

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