aboutsummaryrefslogtreecommitdiff
path: root/templates/page
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-11-12 17:21:46 +0100
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-11-12 17:21:46 +0100
commit64c8ae31ff131e9d1071abeda55a1c1cb2bf5125 (patch)
tree3931ed142716e8566ee12537e62ff0a3237f16ab /templates/page
parente59feeba358683dcaf01cd678e9754f91d99cca5 (diff)
feat(data): tags
Diffstat (limited to 'templates/page')
-rw-r--r--templates/page/index.gohtml5
-rw-r--r--templates/page/tags.gohtml13
2 files changed, 17 insertions, 1 deletions
diff --git a/templates/page/index.gohtml b/templates/page/index.gohtml
index fccb7a5..b3139a3 100644
--- a/templates/page/index.gohtml
+++ b/templates/page/index.gohtml
@@ -9,7 +9,10 @@
<p>{{ .Person.Pronouns }}</p>
</div>
</div>
- <p class="description">{{ .Description }}</p>
+ <p class="description">
+ {{ .Description }}
+ <a href="/tags">More information...</a>
+ </p>
<div class="links">
{{ range $link := .Links }}
<div class="link" style="{{ .GetBackground }}">
diff --git a/templates/page/tags.gohtml b/templates/page/tags.gohtml
new file mode 100644
index 0000000..dc13916
--- /dev/null
+++ b/templates/page/tags.gohtml
@@ -0,0 +1,13 @@
+{{define "body"}}
+ <main style="{{ .GetBackground }}">
+ <h2>Tags</h2>
+ <div class="tags">
+ {{ range $tag := .Person.Tags }}
+ <div class="tag">
+ <h4>{{ .Name }}</h4>
+ <p>{{ .Description }}</p>
+ </div>
+ {{ end }}
+ </div>
+ </main>
+{{end}} \ No newline at end of file