We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Page.Eq
1 parent c079875 commit fc5bf57Copy full SHA for fc5bf57
2 files changed
layouts/partials/nav-list-hier.html
@@ -43,7 +43,7 @@
43
44
{{- if eq (.this.Params.build.list | default "always") "always" }}
45
<li><a href="{{ .this.RelPermalink }}"
46
- {{- if eq .this .currentPage }} class="active"{{- end -}}>
+ {{- if .this.Eq .currentPage }} class="active"{{- end -}}>
47
{{- markdownify .this.Title -}}
48
</a></li>
49
{{- end }}
layouts/partials/post-pagination.html
@@ -15,7 +15,7 @@
15
{{- $next := false }}
16
17
{{- range $i, $page := $pages }}
18
-{{- if eq $page $currentPage }}
+{{- if $page.Eq $currentPage }}
19
{{- $prev = index $pages (sub $i 1) }}
20
{{- $next = index $pages (add $i 1) }}
21
0 commit comments