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) }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}"
|
||||
class="text-decoration-none">{{ .Title }}</a>
|
||||
{{ if .Date -}}
|
||||
<small> {{ .Date.Format (i18n "dateFormat") }}</small>
|
||||
{{- end }}
|
||||
class="text-decoration-none">{{ .Title }}
|
||||
{{ 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>
|
||||
|
|
Loading…
Add table
Reference in a new issue