improve sidebar: more info, better links
This commit is contained in:
parent
347acbe70e
commit
b3127efd25
1 changed files with 7 additions and 4 deletions
|
@ -41,10 +41,13 @@
|
||||||
{{ range first 20 (where .Site.RegularPages "Section" $section) }}
|
{{ range first 20 (where .Site.RegularPages "Section" $section) }}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ .Permalink }}"
|
<a href="{{ .Permalink }}"
|
||||||
class="text-decoration-none">{{ .Title }}</a>
|
class="text-decoration-none">{{ .Title }}
|
||||||
{{ if .Date -}}
|
{{ if .Date -}}
|
||||||
<small> {{ .Date.Format (i18n "dateFormat") }}</small>
|
<small>{{ .Date.Format (i18n "dateFormat") }}</small>
|
||||||
{{- end }}
|
{{- else if .Params.Teaser -}}<small>{{ .Params.Teaser }}</small>
|
||||||
|
{{- else -}}<small>{{ .Summary }}</small>
|
||||||
|
{{- end }}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Add table
Reference in a new issue