diff --git a/layouts/partials/list-item.html b/layouts/partials/list-item.html index 45a6106..ef8646b 100644 --- a/layouts/partials/list-item.html +++ b/layouts/partials/list-item.html @@ -4,8 +4,8 @@ {{- $url := "" -}} {{- $anchor := "" -}} {{- if reflect.IsMap . -}} - {{- $anchor = .anchor}} - {{- $page = .page}} + {{- $anchor = .anchor -}} + {{- $page = .page -}} {{- end -}} {{- if ne $anchor "" -}} {{- $url = printf "%s#%v" $page.Permalink $anchor -}} diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 13a5fb8..4006955 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -65,8 +65,8 @@ {{- $section := or .Section "posts" -}} {{- $header := or (i18n (printf "articles-in-%s" $section)) (i18n "articles-in-section") -}} {{- $related := first 20 (where .Site.RegularPages "Section" $section) -}} - {{- partial "card-related" - (dict "related" $related "header" $header "id" "articles-in-section") -}} + {{- partial "card-related" + (dict "related" $related "header" $header "id" "articles-in-section") -}} {{- end }} {{ if .Site.Params.showBacklinks -}} @@ -75,7 +75,7 @@ (dict "related" $related "header" (i18n "backlinks") "id" "backlinks") -}} {{- end }} - {{ if .Params.toc -}} + {{ if .Params.showtoc -}}