hook_test/themes/academia-hugo/layouts/_default/list.html

30 lines
720 B
HTML
Raw Permalink Normal View History

2021-12-31 12:44:26 +01:00
{{- define "main" -}}
{{ partial "page_header.html" . }}
<div class="universal-wrapper">
{{ with .Content }}
<div class="article-style" itemprop="articleBody">{{ . }}</div>
{{ end }}
{{ $paginator := .Paginate .Data.Pages }}
{{ range $paginator.Pages }}
<div>
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
<div class="article-style">
{{ if .Params.summary }}
{{ .Params.summary | plainify | emojify }}
{{ else if .Params.abstract }}
{{ .Params.abstract | plainify | emojify | truncate 250 }}
{{ else if .Summary }}
{{ .Summary | plainify | emojify }}
{{ end }}
</div>
</div>
{{ end }}
{{ partial "pagination" . }}
</div>
{{- end -}}