rhazdon / hugo-theme-hello-friend-ng

Pretty basic theme for Hugo that covers all of the essentials. All you have to do is start typing!
https://github.com/rhazdon/hugo-theme-hello-friend-ng/
Other
1.47k stars 780 forks source link

Plural / Singular handle for static menu names #80

Closed sam5558 closed 4 years ago

sam5558 commented 4 years ago

Hi @rhazdon , Great template you have here. I would like a bit of help concerning menu names. Let's say i choose the following menu names : image What i expect is to have the same names in the pages content, the thing is either gohugo or the template adds a "s" or "es" for plural. image

I can't find in the config.toml where i should edit this option. I'm pretty much facing the same issue unless i use a name already in plural form.

Any help ? Thanks

matiasandina commented 4 years ago

I experienced the same. Changing the folder and name structure partially solves the issue, but it would be nice to have consistent

|-- content
|---- Singular
|-------- singular.md

I get the singulars page and need to access as ./singular/singular

|-- content
|---- Singular
|-------- index.md

I don't get the plural added and lands directly on /singular. In my case I didn't want to have a menu landing page like the one in posts

rhazdon commented 4 years ago

Hi, well, in the list.html of the _default templates the <h1> tag looks like the following:

<h1>{{ .Title }}</h1>

So I think this is a hugo thing, not related to the theme.

My folder structure looks like:

|-- content
|---- my-topic
|------ index.en.md
|------ index.de.md

With this folder structure I did not notices any issues with unexpected pluralization.

rhazdon commented 4 years ago

https://github.com/rhazdon/hugo-theme-hello-friend-ng/commit/9f3c15b70e61cf8eb466aa96a34250a27c3ac7b0 should fix the issues. :)

sam5558 commented 4 years ago

Hello @rhazdon, Thank you for the fix. I've downloaded the latest version of the theme, it seems to be working great. :+1: Cheers