From e2f739c9e19f57b72b599eaf5bfc10265e62ddb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Sun, 7 Sep 2025 15:22:18 +0200 Subject: feat(style): change tag to now --- main.go | 10 +++++----- scss/main.scss | 3 +++ scss/tag.scss | 6 ------ templates/base/base.gohtml | 5 +++-- templates/page/index.gohtml | 2 +- templates/page/now.gohtml | 19 +++++++++++++++++++ templates/page/tags.gohtml | 18 ------------------ 7 files changed, 31 insertions(+), 32 deletions(-) create mode 100644 templates/page/now.gohtml delete mode 100644 templates/page/tags.gohtml diff --git a/main.go b/main.go index 7fd7093..22ff486 100644 --- a/main.go +++ b/main.go @@ -117,14 +117,14 @@ func main() { "/legal", "Legal things", "", - "Legal information about "+cfg.Person.Name+"'s Now page", + "Legal information about "+cfg.Person.Name+"'s bio", &cfg, ).Handle() - g.NewTemplate("tags", - "/tags", - "Tags", + g.NewTemplate("now", + "/now", + "Now", "", - "Tags of "+cfg.Person.Name+"'s Now page", + ""+cfg.Person.Name+"'s now", &cfg, ).Handle() diff --git a/scss/main.scss b/scss/main.scss index 8723941..adb87be 100644 --- a/scss/main.scss +++ b/scss/main.scss @@ -92,6 +92,7 @@ main { h1, h2, h3 { margin-bottom: 1rem; margin-top: 2rem; + font-weight: bold; } p { @@ -116,6 +117,7 @@ h3 { h4 { font-size: 1.25rem; + font-weight: bold; } ul, ol { @@ -224,6 +226,7 @@ em { width: 100%; column-gap: 1rem; row-gap: 0.5rem; + justify-items: center; @media only screen and (max-width: vars.$bp-little) { grid-template-columns: 1fr; column-gap: 0.5rem; diff --git a/scss/tag.scss b/scss/tag.scss index 5134f27..10fc161 100644 --- a/scss/tag.scss +++ b/scss/tag.scss @@ -37,10 +37,4 @@ display: block; } } - &:hover { - background: var(--tag-hover); - & h4 { - font-weight: bold; - } - } } diff --git a/templates/base/base.gohtml b/templates/base/base.gohtml index 34d5451..894685b 100644 --- a/templates/base/base.gohtml +++ b/templates/base/base.gohtml @@ -1,4 +1,5 @@ {{define "base"}} + {{ $notRoot := ne .SEO.URL "/" }} @@ -20,7 +21,7 @@ {{template "opengraph-base" .SEO}} - {{ if .Data.IsCustomPage }} + {{ if $notRoot }} @@ -36,7 +37,7 @@ {{ $rings := getRings }} {{ if ne $rings nil }} -
+ {{ end }} diff --git a/templates/page/now.gohtml b/templates/page/now.gohtml new file mode 100644 index 0000000..776e87a --- /dev/null +++ b/templates/page/now.gohtml @@ -0,0 +1,19 @@ +{{define "body"}} +
+
+

Now

+ +
+
+ {{ range $tag := .Person.Tags }} +
+

{{ .Name }}

+

{{ .Description }}

+

Hello

+
+ {{ end }} +
+
+{{end}} \ No newline at end of file diff --git a/templates/page/tags.gohtml b/templates/page/tags.gohtml deleted file mode 100644 index 6106152..0000000 --- a/templates/page/tags.gohtml +++ /dev/null @@ -1,18 +0,0 @@ -{{define "body"}} -
-
-

Tags

- -
-
- {{ range $tag := .Person.Tags }} -
-

{{ .Name }}

-

{{ .Description }}

-
- {{ end }} -
-
-{{end}} \ No newline at end of file -- cgit v1.2.3