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 --- templates/base/base.gohtml | 5 +++-- templates/page/index.gohtml | 2 +- templates/page/now.gohtml | 19 +++++++++++++++++++ templates/page/tags.gohtml | 18 ------------------ 4 files changed, 23 insertions(+), 21 deletions(-) create mode 100644 templates/page/now.gohtml delete mode 100644 templates/page/tags.gohtml (limited to 'templates') 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