diff --git a/layouts/index.html b/layouts/index.html new file mode 100644 index 0000000..997a81c --- /dev/null +++ b/layouts/index.html @@ -0,0 +1,28 @@ +{{ define "main" }} + + {{- with .Content }} + + {{ . }} + + {{- end }} + {{/* {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) }} */}} + {{/* SME: order by date reverse */}} + {{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }} + {{ $sortedPages := $pages.ByDate.Reverse }} + {{ $paginator := .Paginate $sortedPages }} + {{- range $paginator.Pages }} + {{- .Render "summary" }} + {{- end }} + {{- if and (eq $paginator.TotalNumberOfElements 0) (not $.Content) }} + + {{ partial "svg/files.svg" (dict "class" "warning__icon") }} + {{ T "noposts_warning_title" | safeHTML }} + + {{ T "noposts_warning_description" | safeHTML }} + {{ T "noposts_warning_tip" | safeHTML }} + + + {{ end }} + +{{ partial "pagination.html" . }} +{{ end }} \ No newline at end of file
{{ T "noposts_warning_description" | safeHTML }}
{{ T "noposts_warning_tip" | safeHTML }}