diff options
| -rw-r--r-- | data.go | 4 | ||||
| -rw-r--r-- | main.go | 2 | ||||
| -rw-r--r-- | templates/page/now.gohtml | 2 |
3 files changed, 4 insertions, 4 deletions
@@ -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"` @@ -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> |
