zerostaticthemes / hugo-winston-theme

A minimal and bold blog theme for Hugo
https://hugo-winston.netlify.app/
MIT License
273 stars 114 forks source link

Disable Menu Elements #38

Closed jb-cloud closed 1 year ago

jb-cloud commented 1 year ago

Is it possible to choose the top right menu options? For example disable the blog or about sections?

onthedock commented 1 year ago

If you want to remove the "About" page from the menu, you can remove the content/pages/about.md file. If you want to add additional "pages", you can add additional files to the content/pages/ folder. Make sure you include the required metadata (e.g. me.md):

---
title: 'Me'
image: images/author.jpg
url: "me"
menu:
  main:
    name: "Me"
    weight: 0
---

Hi, it's me!

Not sure if there's a way to enable/disable the About page from the config.toml file.

To remove the "Blog" entry, remove (or rename) the content/posts/_index.md file.

Hope it helps!

Xavi

JugglerX commented 1 year ago

@jb-cloud - the solution proposed by @onthedock will work.

I have moved the menu configuration to the config.toml file in the latest release as I think this is more intuitive.