mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
menu.html: added support for a 'menuTitle' frontmatter parameter
This commit is contained in:
parent
1a3ca9010d
commit
d335f88af4
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@
|
|||
{{if .Params.alwaysopen}}parent{{end}}
|
||||
">
|
||||
<a href="{{.RelPermalink}}">
|
||||
{{safeHTML .Params.Pre}}{{or .LinkTitle .Title}}{{safeHTML .Params.Post}}
|
||||
{{safeHTML .Params.Pre}}{{or .Params.menuTitle .LinkTitle .Title}}{{safeHTML .Params.Post}}
|
||||
{{ if $showvisitedlinks}}
|
||||
<i class="fa fa-check read-icon"></i>
|
||||
{{ end }}
|
||||
|
@ -139,7 +139,7 @@
|
|||
{{ if not .Params.Hidden }}
|
||||
<li data-nav-id="{{.URL}}" title="{{.Title}}" class="dd-item {{if eq .UniqueID $currentNode.UniqueID}}active{{end}}">
|
||||
<a href="{{ .RelPermalink}}">
|
||||
{{safeHTML .Params.Pre}}{{or .LinkTitle .Title}}{{safeHTML .Params.Post}}
|
||||
{{safeHTML .Params.Pre}}{{or .Params.menuTitle .LinkTitle .Title}}{{safeHTML .Params.Post}}
|
||||
{{ if $showvisitedlinks}}<i class="fa fa-check read-icon"></i>{{end}}
|
||||
</a>
|
||||
</li>
|
||||
|
|
Loading…
Reference in a new issue