diff options
Diffstat (limited to 'layouts/partials/menu.html')
-rw-r--r-- | layouts/partials/menu.html | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 646594b..1978c3f 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -25,12 +25,14 @@ {{end}} </ul> + {{ $enableShortcutsTitle := .Site.Params.EnableShortcutsTitle}} {{with .Site.Menus.shortcuts}} <section id="shortcuts"> + <h3>{{ if $enableShortcutsTitle}}{{ T "Shortcuts-Title"}}{{ end }}</h3> <ul> {{ range sort . "Weight"}} <li class="" role=""> - <a class="padding" href="{{.URL}}">{{.Pre}}{{safeHTML .Name}}{{.Post}}</a> + {{.Pre}}<a class="padding" href="{{.URL}}">{{safeHTML .Name}}</a>{{.Post}} </li> {{end}} </ul> |