From b3127efd25e75ce0099c813ac3e3c07c27c7e09e Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Mon, 20 Jul 2020 07:30:39 +0200 Subject: [PATCH] improve sidebar: more info, better links --- layouts/partials/sidebar.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 460caf3..24ee8d6 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -41,10 +41,13 @@ {{ range first 20 (where .Site.RegularPages "Section" $section) }}
  • {{ .Title }} - {{ if .Date -}} -   {{ .Date.Format (i18n "dateFormat") }} - {{- end }} + class="text-decoration-none">{{ .Title }}   + {{ if .Date -}} + {{ .Date.Format (i18n "dateFormat") }} + {{- else if .Params.Teaser -}}{{ .Params.Teaser }} + {{- else -}}{{ .Summary }} + {{- end }} +
  • {{ end }}