mirror of
https://github.com/McShelby/hugo-theme-relearn
synced 2025-04-30 20:44:32 +08:00
Fix - Wrong context value
This commit is contained in:
parent
e0782779f1
commit
2adc47aa6f
@ -27,7 +27,7 @@
|
|||||||
{{ printf $first.Params.icon | safeHTML }}
|
{{ printf $first.Params.icon | safeHTML }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $first.Title }}
|
{{ $first.Title }}
|
||||||
{{ if .Site.Params.showVisitedLinks}}
|
{{ if $page.Site.Params.showVisitedLinks}}
|
||||||
<i class="fa fa-check read-icon"></i>
|
<i class="fa fa-check read-icon"></i>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</span>
|
</span>
|
||||||
@ -38,7 +38,7 @@
|
|||||||
{{ if gt $k 0 }}
|
{{ if gt $k 0 }}
|
||||||
<li class="dd-item {{ if eq $page.RelPermalink $p.RelPermalink }}active{{ end }}" data-nav-id="{{ $p.RelPermalink }}">
|
<li class="dd-item {{ if eq $page.RelPermalink $p.RelPermalink }}active{{ end }}" data-nav-id="{{ $p.RelPermalink }}">
|
||||||
<a href="{{ $p.RelPermalink }}">
|
<a href="{{ $p.RelPermalink }}">
|
||||||
<span>{{ $p.Title }} {{ if .Site.Params.showVisitedLinks}} <i class="fa fa-check read-icon"> {{ end }} </i></span>
|
<span>{{ $p.Title }} {{ if $page.Site.Params.showVisitedLinks}} <i class="fa fa-check read-icon"> {{ end }} </i></span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user