diff --git a/layouts/partials/index.html b/layouts/partials/index.html new file mode 100644 index 0000000..3b81abf --- /dev/null +++ b/layouts/partials/index.html @@ -0,0 +1,26 @@ +{{ define "main" }} +
+ {{ with .Title }} +

{{ . }}

+ {{ end }} + {{ with .Content }} +
+ {{ . }} +
+ {{ end }} +
+ + {{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }} + {{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }} + {{ $filtered := ($pages | intersect $notHidden) }} + {{ $pag := .Paginate ($filtered) }} + +
+ {{ range $index, $element := $pag.Pages }} + {{ partial "article-list/default" . }} + {{ end }} +
+ + {{- partial "pagination.html" . -}} + {{- partial "footer/footer" . -}} +{{ end }}