mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00:24 +00:00
layouts/partial/menu.html: using the 'linkTitle' attribute as link text (if present)
This commit is contained in:
parent
35bd9113b8
commit
1a3ca9010d
1 changed files with 2 additions and 2 deletions
|
@ -103,7 +103,7 @@
|
|||
{{if .Params.alwaysopen}}parent{{end}}
|
||||
">
|
||||
<a href="{{.RelPermalink}}">
|
||||
{{safeHTML .Params.Pre}}{{.Title}}{{safeHTML .Params.Post}}
|
||||
{{safeHTML .Params.Pre}}{{or .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}}{{.Title}}{{safeHTML .Params.Post}}
|
||||
{{safeHTML .Params.Pre}}{{or .LinkTitle .Title}}{{safeHTML .Params.Post}}
|
||||
{{ if $showvisitedlinks}}<i class="fa fa-check read-icon"></i>{{end}}
|
||||
</a>
|
||||
</li>
|
||||
|
|
Loading…
Reference in a new issue