diff options
Diffstat (limited to 'layouts/partials/toc.html')
-rw-r--r-- | layouts/partials/toc.html | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html index 3b5a822..607e7f0 100644 --- a/layouts/partials/toc.html +++ b/layouts/partials/toc.html @@ -1,5 +1,4 @@ -{{ $chapters := .content.Page.Pages }} -{{ $currentLink := .currentLink}} +{{ $chapters := .Page.Pages }} {{ range .Page.Translations }} {{ $chapters = $chapters | lang.Merge .Pages }} {{ end}} @@ -10,14 +9,10 @@ {{ with .Params.chapterName }} {{ $fullTitle = printf "%s – %s" $fullTitle . }} {{ end }} - {{ if eq $currentLink .RelPermalink }} - <a aria-current="page">{{ trim $fullTitle " " }}</a> ({{ i18n "current"}}) - {{ else }} - <a href="{{ .RelPermalink }}">{{ trim $fullTitle " " }}</a> - {{ end }} + <a href="{{ .RelPermalink }}">{{ trim $fullTitle " " }}</a> {{ partial "post-info.html" . }} {{ if .IsSection}} - {{ partial "toc.html" (dict "content" . "currentLink" $currentLink) }} + {{ partial "toc.html" . }} {{ end }} </li> {{ end }} |