From 23dcabdbfbfc6faf593fa9cd97f51f3bfe415d09 Mon Sep 17 00:00:00 2001 From: Jakob Meier Date: Sat, 18 May 2024 21:36:54 +0200 Subject: [PATCH] Fix html formatting & Add missing tags Why were they missing in the first place? :shrug: --- .gitignore | 1 + layouts/blog/list.html | 63 +++++++++++++++++++------------------ layouts/blog/single.html | 31 +++++++++--------- layouts/index.html | 8 ++--- layouts/sitemap/single.html | 2 ++ layouts/tags/list.html | 3 +- 6 files changed, 58 insertions(+), 50 deletions(-) diff --git a/.gitignore b/.gitignore index 2c72468..073dfea 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .vercel node_modules build +public diff --git a/layouts/blog/list.html b/layouts/blog/list.html index 8caf169..ad81817 100644 --- a/layouts/blog/list.html +++ b/layouts/blog/list.html @@ -4,33 +4,36 @@ My blog posts {{ partial "header.html" }} - {{ partial "nav.html" }} -
- {{ .Content }} - {{ if .Sections }} -

Find out more

-

RSS feed

- {{ range .Sections }} - -
-

- {{ .LinkTitle }} -

-

- ({{.Pages | len}} {{if eq (.Pages | len) 1}} post{{else}} posts{{end}}) -

-
- {{ .Description }} -
- {{ end }} - {{ else }} -

Posts

-

RSS feed

- - {{ end }} -
- {{ partial "footer.html" }} + + {{ partial "nav.html" }} +
+ {{ .Content }} + {{ if .Sections }} +

Find out more

+

RSS feed

+ {{ range .Sections }} + +
+

+ {{ .LinkTitle }} +

+

+ ({{.Pages | len}} {{if eq (.Pages | len) 1}} post{{else}} posts{{end}}) +

+
+ {{ .Description }} +
+ {{ end }} + {{ else }} +

Posts

+

RSS feed

+ + {{ end }} +
+ {{ partial "footer.html" }} + + diff --git a/layouts/blog/single.html b/layouts/blog/single.html index d094ec9..aa804c9 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -4,17 +4,20 @@ {{$.Title}} {{ partial "header.html" }} - {{ partial "nav.html" }} -
-

- {{.Title}} -

- - {{.Date.Format "January 2, 2006"}} - - - {{.Content}} -
- {{ partial "footer.html" . }} + + {{ partial "nav.html" }} +
+

+ {{.Title}} +

+ + {{.Date.Format "January 2, 2006"}} + + + {{.Content}} +
+ {{ partial "footer.html" . }} + + diff --git a/layouts/index.html b/layouts/index.html index a96c4d6..6017d02 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,15 +1,15 @@ - {{ partial "header.html" }} - {{$.Title}} + {{ partial "header.html" }} + {{$.Title}} - {{ partial "nav.html" }} -

ccw.icu

+

ccw.icu

{{.Content}} +
{{ partial "footer.html" }} diff --git a/layouts/sitemap/single.html b/layouts/sitemap/single.html index 77aa5c4..f2a9dcb 100644 --- a/layouts/sitemap/single.html +++ b/layouts/sitemap/single.html @@ -58,3 +58,5 @@ {{ partial "footer.html" }} + + diff --git a/layouts/tags/list.html b/layouts/tags/list.html index b04c3ea..96cf47d 100644 --- a/layouts/tags/list.html +++ b/layouts/tags/list.html @@ -5,8 +5,8 @@ {{$.Title}} - {{ partial "nav.html" }} +

{{ .Title }}