Skip to content

Commit 2adc47a

Browse files
committed
Fix - Wrong context value
1 parent e078277 commit 2adc47a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

layouts/partials/menu.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
{{ printf $first.Params.icon | safeHTML }}
2828
{{ end }}
2929
{{ $first.Title }}
30-
{{ if .Site.Params.showVisitedLinks}}
30+
{{ if $page.Site.Params.showVisitedLinks}}
3131
<i class="fa fa-check read-icon"></i>
3232
{{ end }}
3333
</span>
@@ -38,7 +38,7 @@
3838
{{ if gt $k 0 }}
3939
<li class="dd-item {{ if eq $page.RelPermalink $p.RelPermalink }}active{{ end }}" data-nav-id="{{ $p.RelPermalink }}">
4040
<a href="{{ $p.RelPermalink }}">
41-
<span>{{ $p.Title }} {{ if .Site.Params.showVisitedLinks}} <i class="fa fa-check read-icon"> {{ end }} </i></span>
41+
<span>{{ $p.Title }} {{ if $page.Site.Params.showVisitedLinks}} <i class="fa fa-check read-icon"> {{ end }} </i></span>
4242
</a>
4343
</li>
4444
{{ end }}

0 commit comments

Comments
 (0)