HUGO

Need some help with changing title

Hello, these are the parameters I’ve passed in my config.toml file.

[[menu.main]]
identifier = “blog”
name = “blog”
title = “Blog”
url = “/blog”

But my website title shows “Blogs”. I’m not sure where the extra letter “s” is coming from. Would really appreciate some help with this!

See https://gohugo.io/getting-started/configuration/#all-configuration-settings, specifically pluralizeListTitles.

1 Like

I tried doing this, I added pluralizeListTitles = false in my config.toml, it’s still not changing though. Am I doing something wrong? Thank you again for the help!

Please share your configuration file.

1 Like
theme = "hugo-theme-codex"
title = "Arvin Das"
languageCode = "en-us"
baseURL = "https://example.org/"
copyright = "© {year}"


  dateFormat = "Jan 2 2006"
  author = "Arvin Das"


  twitter = "https://twitter.com/<your handle>"
  github = "https://github.com/<your handle>"
  

  iconOrder = ["Twitter", "GitHub"]


  twitterSite = " "
  twitterAuthor = " "

  
  showPageTitleInTOC = true
  pluralizeListTitles = false

[params.mysite]
copystart = "2021"

[markup]
  [markup.highlight]
    codeFences = false


  [markup.goldmark.renderer]
      unsafe = true


[[menu.main]]
  identifier = "home"
  name = "home"
  title = "Home"
  url = "/"

[[menu.main]]
  identifier = "blog"
  name = "blog"
  title = "Blog"
  url = "/blog"

What does your content directory look like?

1 Like
└── content
    └── blog
    |    └── one.md
    |     └── two.md
    |     └── three.md
    |     └── static
    |     	└── js
    |    	 └── svg
    └── _index.md

     

Well, it looks to me like pluralizeListTitles = false should be working. Can you share the public repository for your project?

1 Like

Yep, here it is!

Admittedly, the code is quite disorganized, I’ve tried playing around with it quite some bit. Apologies for that! Thank you for helping again!

When I asked you to post your site configuration, you didn’t post your site configuration. You posted an edited version of your site configuration.

You have placed pluralizeListTitles = false within the [params] table. Don’t do that.

1 Like

Also, the static directory belongs at the root of your project, not within the blog directory.

1 Like

That worked, thank you so much for the help!

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