aboutsummaryrefslogtreecommitdiff
path: root/templates/page
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-11-14 14:48:13 +0100
committerAnhgelus Morhtuuzh <anhgelus.morhtuuzh@proton.me>2024-11-14 14:48:13 +0100
commit83a7fc5cf8eda929eef75305ec8435ecd228d2f4 (patch)
treeb7eda052aa52e57ac9de2139f728678e53912596 /templates/page
parent9787e1a1d5364ca056ec033f26e28a76ab6423e1 (diff)
feat(legal): merge legal and credits page
Diffstat (limited to 'templates/page')
-rw-r--r--templates/page/index.gohtml8
-rw-r--r--templates/page/legal.gohtml (renamed from templates/page/credits.gohtml)5
2 files changed, 4 insertions, 9 deletions
diff --git a/templates/page/index.gohtml b/templates/page/index.gohtml
index b5f964f..dee6782 100644
--- a/templates/page/index.gohtml
+++ b/templates/page/index.gohtml
@@ -19,16 +19,8 @@
</div>
{{ end }}
<div class="link" style="{{ .Color.Button.GetBackground }}">
- <a href="{{ .Legal.LegalInformationLink }}" target="_blank" style="{{ .Color.Button.GetTextColor }}">
- Legal information
- </a>
- </div>
- <div class="link" style="{{ .Color.Button.GetBackground }}">
<a href="/tags" style="{{ .Color.Button.GetTextColor }}">Tags</a>
</div>
- <div class="link" style="{{ .Color.Button.GetBackground }}">
- <a href="/credits" style="{{ .Color.Button.GetTextColor }}">Credits</a>
- </div>
</div>
</main>
{{end}} \ No newline at end of file
diff --git a/templates/page/credits.gohtml b/templates/page/legal.gohtml
index 2d82734..2769431 100644
--- a/templates/page/credits.gohtml
+++ b/templates/page/legal.gohtml
@@ -1,6 +1,9 @@
{{define "body"}}
<div class="credits-legal">
- <h2>Credits</h2>
+ <h2>Legal information</h2>
+ <p>
+ Legal information are available <a href="{{ .Legal.LegalInformationLink }}" target="_blank">here</a>.
+ </p>
<p>
The software behind this website was made by <a href="https://www.anhgelus.world/" target="_blank">Anhgelus Morhtuuzh</a>.
It is available on <a href="https://github.com/anhgelus/now">GitHub</a> for free and licensed under the