diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2025-09-07 14:55:39 +0000 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2025-09-07 14:55:39 +0000 |
| commit | 3a809d2571f8df178c436f463c9aade25a34c96e (patch) | |
| tree | 6a4a0485b5650320afe5c1c2e61e9a8987db83a3 /templates/page/now.gohtml | |
| parent | e8da79df02b9045146e2a0cb9e035f14a68537c6 (diff) | |
| parent | 14f30577f9b5f76d288abce6ba19bf6150936401 (diff) | |
Merge pull request '[Feat] Change tags in now' (#1) from feat/change-tags into main
Reviewed-on: https://git.anhgelus.world/anhgelus/now/pulls/1
Diffstat (limited to 'templates/page/now.gohtml')
| -rw-r--r-- | templates/page/now.gohtml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/page/now.gohtml b/templates/page/now.gohtml new file mode 100644 index 0000000..96c8b77 --- /dev/null +++ b/templates/page/now.gohtml @@ -0,0 +1,23 @@ +{{define "body"}} + <main style="{{ .GetBackground }}"> + <div class="header"> + <h1 class="header__title">Now</h1> + <nav> + <a href="/">Home</a> + </nav> + </div> + <div class="tags" style="{{ .Color.GetTagColor }}"> + {{ range $now := .Person.Now }} + <div class="tag"> + {{ if ne .Name "" }} + <h4>{{ .Name }}</h4> + {{ end }} + <p>{{ .Description }}</p> + {{ if and (ne .Link "") (ne .LinkName "") }} + <p><a href="{{ .Link }}">{{ .LinkName }}</a></p> + {{ end }} + </div> + {{ end }} + </div> + </main> +{{end}}
\ No newline at end of file |
