mirror of
https://gitlab.com/ansol/web-ansol.org.git
synced 2024-11-29 01:07:41 +00:00
27 lines
507 B
HTML
27 lines
507 B
HTML
|
{{- define "main" -}}
|
||
|
|
||
|
{{ partial "page_header.html" . }}
|
||
|
|
||
|
<div class="universal-wrapper">
|
||
|
|
||
|
{{ with .Content }}
|
||
|
<div class="article-style">{{ . }}</div>
|
||
|
{{ end }}
|
||
|
|
||
|
{{ $paginator := .Paginate .Data.Pages }}
|
||
|
{{ range $paginator.Pages }}
|
||
|
{{ if eq $.Params.view 1 }}
|
||
|
{{ partial "li_list" . }}
|
||
|
{{ else if eq $.Params.view 3 }}
|
||
|
{{ partial "li_card" . }}
|
||
|
{{ else }}
|
||
|
{{ partial "li_compact" . }}
|
||
|
{{ end }}
|
||
|
{{ end }}
|
||
|
|
||
|
{{ partial "pagination" . }}
|
||
|
|
||
|
</div>
|
||
|
|
||
|
{{- end -}}
|