improve sidebar: more info, better links

This commit is contained in:
Helmut Merz 2020-07-20 07:30:39 +02:00
parent 347acbe70e
commit b3127efd25

View file

@ -41,10 +41,13 @@
{{ range first 20 (where .Site.RegularPages "Section" $section) }}
<li>
<a href="{{ .Permalink }}"
class="text-decoration-none">{{ .Title }}</a>
{{ if .Date -}}
<small>&nbsp;&nbsp;{{ .Date.Format (i18n "dateFormat") }}</small>
{{- end }}
class="text-decoration-none">{{ .Title }}&nbsp;&nbsp;
{{ if .Date -}}
<small>{{ .Date.Format (i18n "dateFormat") }}</small>
{{- else if .Params.Teaser -}}<small>{{ .Params.Teaser }}</small>
{{- else -}}<small>{{ .Summary }}</small>
{{- end }}
</a>
</li>
{{ end }}
</ul>