Cactus Theme: Remove about page from homepage posts list

I’m using the cactus theme. My folder structure looks like this

├── config.toml
├── content
│   ├── about
│   │   └──
│   └── posts
│       └──

and my config file like this:

baseURL = "xxx"
languageCode = "en-us"
title = "xxxx"
theme = "cactus"

name = "Home"
url = "/posts"
weight = 1

name = "All posts"
url = "/posts"
weight = 2

name = "About"
url = "/about"
weight = 3

When I’m on the start page I have 2 articles listed under writings:


  • 2020-11-01: About
  • 2020-10-30: My first article

I don’t want the about page to be listed there! How can I remove it from the Writings list?

Also adding this did not solve it.

  mainSection = "posts"

The variable is called mainSections you missed the final s.

If that doesn’t fix the issue, I suggest that you look into creating a filtered post list on the homepage template i.e. themes/cactus/index.html


No that does not fix it. The documentation on cactus states mainSection. But neither worked.

There is no mainSection variable in Hugo.

Perhaps that is a custom variable that the theme author has created. Your question is theme specific.

I suggest that you ask directly in the theme repo.

Also please have a look at the forum Requesting Help guidelines.

It’s a known issue in that theme: