From fe877033e979a6913b3ff24ea7cc22a7f34fb72a Mon Sep 17 00:00:00 2001 From: Alexander Neonxp Kiryukhin Date: Sun, 15 Dec 2024 13:11:56 +0300 Subject: Auto-commit 2024-12-15 --- assets/css/main.css | 5 +++++ layouts/_default/list.html | 4 ++-- layouts/_default/single.html | 2 +- layouts/go/single.html | 2 +- layouts/index.html | 4 ++-- 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/assets/css/main.css b/assets/css/main.css index c76e024..ee0b934 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -7,6 +7,8 @@ .page, .post { margin-bottom:4rem; +} +.post.single { padding: 0 1rem; } .post-footer { @@ -81,4 +83,7 @@ h1.post-title { font-family: 'Lobster'; text-shadow: 1px 1px 2px #333; +} +.sidebar { + padding-bottom: 4rem; } \ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 365d386..b7799ea 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,7 +1,7 @@ {{ define "main" }}
-
+ -
+
{{ $paginator := .Paginate .Pages 7 }} {{ range $paginator.Pages }} {{ partial "list.html" . }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 15d4f05..6996c92 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,6 +1,6 @@ {{ define "main" }}
-
+
{{ partial "single/header.html" . }}
{{ .Content }}
{{ partial "single/footer.html" . }} diff --git a/layouts/go/single.html b/layouts/go/single.html index ca30873..6acf2b6 100644 --- a/layouts/go/single.html +++ b/layouts/go/single.html @@ -1,6 +1,6 @@ {{ define "main" }}
-
+
{{ partial "single/header.html" . }}
Установка: diff --git a/layouts/index.html b/layouts/index.html index 88e4bb8..0c749d2 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,7 +1,7 @@ {{ define "main" }}
-
+ -
+
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }} {{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }} {{ $filtered := ($pages | intersect $notHidden) }} -- cgit v1.2.3