aboutsummaryrefslogtreecommitdiff
path: root/layouts/index.html
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-15 03:56:47 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-15 03:56:47 +0300
commita9168e6f04f766f7d88bc1b24aaa81336098b2fc (patch)
treea4db599140020cfb14803aa4d28b17d52e637a72 /layouts/index.html
parent3b040f1503d90a309f41063d8f760a3e312ab351 (diff)
Auto-commit 2024-12-15
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..88e4bb8
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,27 @@
+{{ define "main" }}
+<div class="container">
+ <div class="row">
+ <div class="col-xs-12 col-sm-12 col-md-4">
+ {{ if .Title }}
+ <h1 class="post-title fw-semibold">
+ {{ .Title }}
+ </h1>
+ {{ .Content }}
+ <a href="/feed/" class="btn btn-primary">{{ partial "icon.html" "rss" }} Пописка</a>
+ {{ end }}
+ </div>
+ <div class="col-xs-12 col-sm-12 col-md-8">
+ {{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
+ {{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }}
+ {{ $filtered := ($pages | intersect $notHidden) }}
+ {{ $pag := .Paginate ($filtered) }}
+
+ {{ $paginator := .Paginate .Pages 7 }}
+ {{ range $paginator.Pages }}
+ {{ partial "list.html" . }}
+ {{ end }}
+ <nav>{{ partial "pagination.html" . }}</nav>
+ </div>
+ </div>
+</div>
+{{ end }}