aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-09-07 15:56:18 +0200
committerWilliam Hergès <william@herges.fr>2025-09-07 15:56:18 +0200
commitfdf8c390e91ef02c05a95fa1f8c1c9104ffbabf5 (patch)
tree1cdaecbd55a763969c7671504184abb157ee6724
parent7240e39c532a5a4238b5f25bd6956d54705d6806 (diff)
style(now): rename tags in now
-rw-r--r--data.go4
-rw-r--r--main.go2
-rw-r--r--templates/page/now.gohtml2
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 @@
</nav>
</div>
<div class="tags" style="{{ .Color.GetTagColor }}">
- {{ range $tag := .Person.Tags }}
+ {{ range $now := .Person.Now }}
<div class="tag">
<h4>{{ .Name }}</h4>
<p>{{ .Description }}</p>