hugo-toha / guides

Documentation Hugo theme Toha. https://github.com/hossainemruz/toha.
https://toha-guides.netlify.app/
MIT License
23 stars 57 forks source link

Add custom navbar guide #288

Closed BernatBC closed 6 months ago

BernatBC commented 6 months ago

Adds guide for custom navbar title (hugo-toha/toha/pull/921)

niltied commented 6 months ago

Hi @BernatBC,

Maybe you'll go faster than me. Is it possible that you also make the modification for the index.fr.md file as follow ?

navBarTitle: "Titre"

Thank U for you help

BernatBC commented 6 months ago

Hi @niltied, I could do it, but the translation might not be good enough. If you want, you can send me the translation. Otherwise, in a couple of days I could try doing it.

niltied commented 6 months ago

Re,

If you translate the index.md file, for English, it looks like this :

navBarTitle: "Title"

So, for French, it’s will be :

navBarTitle: "Titre"

There are no other translations.

BernatBC commented 6 months ago

Ok, what about the following?

### Change Navbar Title
To change the title appearing on the navbar, you can modify `site.yaml` file. By defauly, the title corresponds to the website name. You can add the following line:
niltied commented 6 months ago

Hi @BernatBC,

So, it will be : "Pour changer le titre qui apparaît sur la barre de navigation, vous pouvez midifier le fichier site.yaml. Par defaut, le titre correpond au nom du site. Vous pouvez ajouter la ligne suivante:"