diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 24ee8d6..6dc0604 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -1,43 +1,43 @@
- {{ if .Params.img }} + {{ if .Params.img -}} {{ .Params.title }} - {{ else if .Params.teaser }} + {{- else if .Params.teaser -}}
{{ .Params.teaser }}
- {{ else if .Site.Params.defaultImage }} + {{- else if .Site.Params.defaultImage -}} dummy - {{ end }} + {{- end }} - {{ $site := .Site }} - {{ with .Params.Topics }} + {{- $site := .Site -}} + {{ with .Params.Topics -}}

{{i18n "topics"}}

    - {{ range . }} + {{ range . -}} {{ $page := $site.GetPage (printf "/topics/%s" .) }}
  • {{ $page.Title }}
  • - {{ end }} + {{- end }}
- {{ end }} + {{- end }}
+ {{- $section := or .Section "posts" -}}
-

{{i18n "recentArticles"}}

+

{{i18n $section}}

    - {{ $section := or .Section "posts" }} {{ range first 20 (where .Site.RegularPages "Section" $section) }}