portfolios_exemple2/themes/academia-hugo/layouts/section/post.html

29 lines
582 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 }}
{{ if eq $.Params.view 1 }}
{{ partial "li_list" . }}
{{ else if eq $.Params.view 3 }}
<div class="col-lg-4 col-md-6 mb-4">
{{ partial "li_card" . }}
</div>
{{ else }}
{{ partial "li_compact" . }}
{{ end }}
{{ end }}
{{ partial "pagination" . }}
</div>
{{- end -}}