From 7a4191f01aa86682ca73a514f8bb4e194b7ad0fa Mon Sep 17 00:00:00 2001 From: tsmitty11 Date: Wed, 17 May 2023 19:28:50 +0200 Subject: [PATCH] Progress on blog --- src/layouts/_default/list.html | 130 ++++++++++++++++++++------------- 1 file changed, 78 insertions(+), 52 deletions(-) diff --git a/src/layouts/_default/list.html b/src/layouts/_default/list.html index baea8aa..cb27d03 100644 --- a/src/layouts/_default/list.html +++ b/src/layouts/_default/list.html @@ -21,40 +21,65 @@
-
-

Recent Posts

+
+

Recent Posts

+
+ {{ range .Pages }} +
+ +
+ {{ if .Params.featured_image }} + + {{ end }} +
+

{{ .Title }}

+ {{ .Date.Format "2006-01-02" }} + {{ .Content }} +
+
+ +
+ {{ end }} +
-
-
-
-
-
- {{ range .Pages }} -
- -
- {{ if .Params.featured_image }} - - {{ end }} -
-

{{ .Title }}

- {{ .Date.Format "2006-01-02" }} - {{ .Content }} -
-
- -
- {{ end }} - Back to home -
-
@@ -102,30 +127,9 @@ line-height: 22px; } - .row { - display: flex; - flex-direction: row; - justify-content: space-between; -} - -.content-area { - flex: 0 0 80%; - max-width: 80%; - display: flex; - flex-wrap: wrap; - justify-content: space-between; -} - -.blog-col { - flex: 0 0 calc(33.3333% - 1em); - margin-bottom: 1em; -} - - .sidebar { flex: 0 0 30%; max-width: 20%; - padding: 1em; border-left: 1px solid #ddd; } @@ -137,6 +141,28 @@ .sidebar ul li { padding: 0.5em 0; } + +input[type=text], input[type=email] { + width: 100%; + padding: 12px 20px; + margin: 8px 0; + box-sizing: border-box; +} + +input[type=submit] { + width: 100%; + background-color: #4CAF50; + color: white; + padding: 14px 20px; + margin: 8px 0; + border: none; + border-radius: 4px; + cursor: pointer; +} + +input[type=submit]:hover { + background-color: #45a049; +}