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 --- data.go | 4 ++-- main.go | 2 +- templates/page/now.gohtml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data.go b/data.go index e250d78..174b104 100644 --- a/data.go +++ b/data.go @@ -48,10 +48,10 @@ type Person struct { Name string `json:"name" toml:"name"` Pronouns string `json:"pronouns" toml:"pronouns"` Image string `json:"image" toml:"image"` - Tags []*Tag `json:"tags" toml:"tags"` + Now []*Now `json:"now" toml:"now"` } -type Tag struct { +type Now struct { Name string `json:"name" toml:"name"` Description string `json:"description" toml:"description"` Link string `json:"link" toml:"link"` diff --git a/main.go b/main.go index 7f967ff..6df8e79 100644 --- a/main.go +++ b/main.go @@ -185,7 +185,7 @@ func generateConfigFile(isToml bool) { Name: "John Doe", Pronouns: "any", Image: "pfp.webp", - Tags: []*Tag{ + Now: []*Now{ {"Hello", "World", "", ""}, {"I am", "a tag", "", ""}, }, 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