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 From 36963a2839b33121de235c5e16743e508a52b9ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Sun, 7 Sep 2025 15:32:45 +0200 Subject: feat(now): modify how links are handled --- templates/page/now.gohtml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/page/now.gohtml b/templates/page/now.gohtml index 776e87a..6af668e 100644 --- a/templates/page/now.gohtml +++ b/templates/page/now.gohtml @@ -8,10 +8,12 @@
{{ range $tag := .Person.Tags }} -
+

{{ .Name }}

{{ .Description }}

-

Hello

+ {{ if and (ne .Link "") (ne .LinkName "") }} +

{{ .LinkName }}

+ {{ end }}
{{ end }}
-- cgit v1.2.3 From fdf8c390e91ef02c05a95fa1f8c1c9104ffbabf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Sun, 7 Sep 2025 15:56:18 +0200 Subject: style(now): rename tags in now --- templates/page/now.gohtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/page/now.gohtml b/templates/page/now.gohtml index 6af668e..5286f87 100644 --- a/templates/page/now.gohtml +++ b/templates/page/now.gohtml @@ -7,7 +7,7 @@
- {{ range $tag := .Person.Tags }} + {{ range $now := .Person.Now }}

{{ .Name }}

{{ .Description }}

-- cgit v1.2.3 From f9464729d0775341a5bec5a0ae38bea1ad64bded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Sun, 7 Sep 2025 15:58:21 +0200 Subject: feat(now): do not display title if field is empty --- templates/page/now.gohtml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/page/now.gohtml b/templates/page/now.gohtml index 5286f87..96c8b77 100644 --- a/templates/page/now.gohtml +++ b/templates/page/now.gohtml @@ -9,7 +9,9 @@
{{ range $now := .Person.Now }}
-

{{ .Name }}

+ {{ if ne .Name "" }} +

{{ .Name }}

+ {{ end }}

{{ .Description }}

{{ if and (ne .Link "") (ne .LinkName "") }}

{{ .LinkName }}

-- cgit v1.2.3 From 996ff551f05dee6db08c8eb4144e7db4a5dbeaa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Sun, 7 Sep 2025 16:37:10 +0200 Subject: fix(custom): header using old tag and not redirecting to new page --- templates/page/custom_page.gohtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/page/custom_page.gohtml b/templates/page/custom_page.gohtml index 5b4de00..7963a97 100644 --- a/templates/page/custom_page.gohtml +++ b/templates/page/custom_page.gohtml @@ -4,7 +4,7 @@

{{ .Title }}

{{ .GetContent }} -- cgit v1.2.3 From 26d21b4fa9c703a84b34ceabc13d0d5e19c90e98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?William=20Herg=C3=A8s?= Date: Sun, 7 Sep 2025 16:48:17 +0200 Subject: feat(404): better handle --- templates/page/404.gohtml | 24 ++++++++++++++++++++++++ templates/page/legal.gohtml | 11 ++++++++--- 2 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 templates/page/404.gohtml (limited to 'templates') diff --git a/templates/page/404.gohtml b/templates/page/404.gohtml new file mode 100644 index 0000000..76f9128 --- /dev/null +++ b/templates/page/404.gohtml @@ -0,0 +1,24 @@ +{{define "body"}} +
+
+

404 - Not found

+ +
+

+ Oh no, you are lost. Do you need help? +

+ +
+{{end}} \ No newline at end of file diff --git a/templates/page/legal.gohtml b/templates/page/legal.gohtml index b3a3a54..0ed112a 100644 --- a/templates/page/legal.gohtml +++ b/templates/page/legal.gohtml @@ -1,11 +1,16 @@ {{define "body"}} - + {{end}} -- cgit v1.2.3