aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-15 13:11:56 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-15 13:11:56 +0300
commitfe877033e979a6913b3ff24ea7cc22a7f34fb72a (patch)
treed859abc20fa0f33a5856f1bdc65ea002df5f81d5
parentf7c375053d0dd86217e5db628a1e81200d13659f (diff)
Auto-commit 2024-12-15
-rw-r--r--assets/css/main.css5
-rw-r--r--layouts/_default/list.html4
-rw-r--r--layouts/_default/single.html2
-rw-r--r--layouts/go/single.html2
-rw-r--r--layouts/index.html4
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" }}
<div class="container">
<div class="row">
- <div class="col-xs-12 col-sm-12 col-md-4">
+ <div class="col-xs-12 col-sm-12 col-md-4 sidebar">
{{ if .Title }}
<h1 class="post-title fw-semibold">
{{ .Title }}
@@ -10,7 +10,7 @@
<a href="index.xml" class="btn btn-primary">{{ partial "icon.html" "rss" }} Пописка</a>
{{ end }}
</div>
- <div class="col-xs-12 col-sm-12 col-md-8">
+ <div class="col-xs-12 col-sm-12 col-md-8 content">
{{ $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" }}
<div class="posts-container mx-auto my-5">
- <div class="post">
+ <div class="post single">
{{ partial "single/header.html" . }}
<div class="e-content">{{ .Content }}</div>
{{ 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" }}
<div class="posts-container mx-auto my-5">
- <div class="post">
+ <div class="post single">
{{ partial "single/header.html" . }}
<div>
Установка:
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" }}
<div class="container">
<div class="row">
- <div class="col-xs-12 col-sm-12 col-md-4">
+ <div class="col-xs-12 col-sm-12 col-md-4 sidebar">
{{ if .Title }}
<h1 class="post-title fw-semibold">
{{ .Title }}
@@ -10,7 +10,7 @@
<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">
+ <div class="col-xs-12 col-sm-12 col-md-8 content">
{{ $pages := where .Site.RegularPages "Type" "in" .Site.Params.mainSections }}
{{ $notHidden := where .Site.RegularPages "Params.hidden" "!=" true }}
{{ $filtered := ($pages | intersect $notHidden) }}