16 lines
487 B
HTML
16 lines
487 B
HTML
{{ range $idx, $page := . -}}
|
|
<li>
|
|
{{- $url := .Permalink -}}
|
|
{{- if eq (printf "%T" $idx) "string" -}}
|
|
{{- $url = printf "%s#%v" .Permalink $idx -}}
|
|
{{- end -}}
|
|
<a href="{{ $url }}"
|
|
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 }}
|