From 551e324b62fd8bb5a6f2d25e044f4992421f0335 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Duje=20Mihanovi=C4=87?= Date: Thu, 17 Aug 2023 20:39:39 +0200 Subject: [PATCH] Remove all use of CSS flexbox The main motivation for this is to improve compatibility with older browsers. --- assets/css/style.css | 11 +---------- layouts/_default/baseof.html | 2 ++ layouts/posts/single.html | 8 +++++--- 3 files changed, 8 insertions(+), 13 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 93c57d6..e2c5e0f 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -28,7 +28,7 @@ nav li { } p { - margin: 8px 0; + margin: 12px 0; } ul { @@ -39,18 +39,9 @@ ul { main { max-width: 1000px; margin: 0 auto; - display: flex; - flex-direction: column; - align-items: center; text-align: justify; } h1 { text-align: center; } - -footer { - display: flex; - flex-direction: column; - align-items: center; -} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index a32c2f4..4d53567 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -16,6 +16,7 @@
diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 7cdb7f1..ccebea4 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -1,8 +1,10 @@ {{ define "main" }}

{{ .Title }}

- {{ .WordCount }} words, estimated reading time: {{ .ReadingTime }} minute(s) - Originally published on {{ .PublishDate.Format "January 2, 2006" }} - Last modified on {{ .Lastmod.Format "January 2, 2006" }} +

{{ .WordCount }} words, estimated reading time: {{ .ReadingTime }} + minute(s)

+

Originally published on {{ .PublishDate.Format "January 2, 2006" + }}

+

Last modified on {{ .Lastmod.Format "January 2, 2006" }}

{{ .Content }} {{ end }} -- 2.39.2