From d335f88af43614ba4fd092052867272e46186fb2 Mon Sep 17 00:00:00 2001 From: Manuel Reithuber Date: Sun, 19 Nov 2017 13:55:30 +0100 Subject: [PATCH] menu.html: added support for a 'menuTitle' frontmatter parameter --- layouts/partials/menu.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 0a157f1812..ed436c57e3 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -103,7 +103,7 @@ {{if .Params.alwaysopen}}parent{{end}} "> - {{safeHTML .Params.Pre}}{{or .LinkTitle .Title}}{{safeHTML .Params.Post}} + {{safeHTML .Params.Pre}}{{or .Params.menuTitle .LinkTitle .Title}}{{safeHTML .Params.Post}} {{ if $showvisitedlinks}} {{ end }} @@ -139,7 +139,7 @@ {{ if not .Params.Hidden }}
  • - {{safeHTML .Params.Pre}}{{or .LinkTitle .Title}}{{safeHTML .Params.Post}} + {{safeHTML .Params.Pre}}{{or .Params.menuTitle .LinkTitle .Title}}{{safeHTML .Params.Post}} {{ if $showvisitedlinks}}{{end}}