From 04f1dd0327d155d264248cf3cfe22f0faadd37c7 Mon Sep 17 00:00:00 2001 From: Hoernschen Date: Wed, 27 Dec 2023 00:23:25 +0100 Subject: [PATCH] ADD post list --- assets/scss/index.scss | 13 +++++++++++-- layouts/_default/list.html | 19 ++++++++++++------- layouts/_default/single.html | 2 +- layouts/partials/footer.html | 4 ++-- 4 files changed, 26 insertions(+), 12 deletions(-) diff --git a/assets/scss/index.scss b/assets/scss/index.scss index 1f212dc..b49c1af 100644 --- a/assets/scss/index.scss +++ b/assets/scss/index.scss @@ -106,7 +106,7 @@ a { .header > .items > .item { align-self: center; - padding-inline-end: 10px; + padding-inline-end: 16px; } /* Footer */ @@ -121,12 +121,17 @@ a { .footer > .social { display: flex; + flex-direction: row; + flex-wrap: wrap; justify-content: center; +} + +.footer > .social i { font-size: x-large; } .footer > .social a { - padding-inline: 3px; + padding-inline: 6px; color: {{ .Site.Params.color.primary }}; } @@ -162,6 +167,10 @@ a { flex-direction: column; } +.title h1 { + font-size: xx-large; +} + .content { padding-top: 9rem; padding-bottom: 2rem; diff --git a/layouts/_default/list.html b/layouts/_default/list.html index 7ce436c..1f269df 100644 --- a/layouts/_default/list.html +++ b/layouts/_default/list.html @@ -1,14 +1,19 @@ {{ define "main" }} - {{ if .Content }} + {{ if .Title }}
- {{ with .Title }} -
-

{{ . }}

-
-
- {{ end }} +
+
+

{{ .Title }}

+
+
{{.Content}} +
+
+ {{ range .Pages }} +

{{ .Title }}

+ {{ end }} +
{{ else }}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 2918eba..087d2e4 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -9,7 +9,7 @@
{{ with .Title }}
-

{{ . }}

+

{{ . }}

{{ end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index a0a2a36..2d192a6 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -3,7 +3,7 @@ {{ if .social }} {{ end }} @@ -19,5 +19,5 @@ © {{ dateFormat "2006" now }} {{ .copyright }}

{{ end }} - + {{ end }} \ No newline at end of file