thingsym / hugo-theme-techdoc

The Techdoc is a Hugo Theme for technical documentation.
https://themes.gohugo.io/hugo-theme-techdoc/
MIT License
210 stars 147 forks source link

Menu: use LinkTitle instead of Title #21

Open thaJeztah opened 4 years ago

thaJeztah commented 4 years ago

LinkTitle allows overriding the title to use in menus in a page's front-matter. For example:

title: This is the title of the page
linktitle: menu title

It a linktitle is defined in the page's front-matter, it will be used as title in the menu. Pages that do not have a linktitle configured will use the title instead (see https://gohugo.io/content-management/front-matter/).

thaJeztah commented 4 years ago

@thingsym ptal

zybex86 commented 4 years ago

I believe that there is also one problem with the Home menu item as it is ALWAYS added to a slide-menu which would be nice when it wasn't.