mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-31 08:57:15 +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}}
|
{{if .Params.alwaysopen}}parent{{end}}
|
||||||
">
|
">
|
||||||
<a href="{{.RelPermalink}}">
|
<a href="{{.RelPermalink}}">
|
||||||
{{safeHTML .Params.Pre}}{{.Title}}{{safeHTML .Params.Post}}
|
{{safeHTML .Params.Pre}}{{or .LinkTitle .Title}}{{safeHTML .Params.Post}}
|
||||||
{{ if $showvisitedlinks}}
|
{{ if $showvisitedlinks}}
|
||||||
<i class="fa fa-check read-icon"></i>
|
<i class="fa fa-check read-icon"></i>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@ -139,7 +139,7 @@
|
||||||
{{ if not .Params.Hidden }}
|
{{ if not .Params.Hidden }}
|
||||||
<li data-nav-id="{{.URL}}" title="{{.Title}}" class="dd-item {{if eq .UniqueID $currentNode.UniqueID}}active{{end}}">
|
<li data-nav-id="{{.URL}}" title="{{.Title}}" class="dd-item {{if eq .UniqueID $currentNode.UniqueID}}active{{end}}">
|
||||||
<a href="{{ .RelPermalink}}">
|
<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}}
|
{{ if $showvisitedlinks}}<i class="fa fa-check read-icon"></i>{{end}}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Add table
Reference in a new issue