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/page/now.gohtml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 templates/page/now.gohtml (limited to 'templates/page/now.gohtml') 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 -- 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/page/now.gohtml') 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/page/now.gohtml') 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/page/now.gohtml') 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