From 4ed5972a11d4d1a2be50ea893e5d064bf73da33a Mon Sep 17 00:00:00 2001 From: Vezpi Date: Mon, 23 Jun 2025 18:46:46 +0000 Subject: [PATCH] test: edit layouts/index.html --- layouts/partials/index.html | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 layouts/partials/index.html 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 }}