refactor(pages): use html instead of json to render legal

This commit is contained in:
Anhgelus Morhtuuzh 2025-03-10 10:56:47 +01:00
parent f98647cabb
commit 2d74d8afc3
No known key found for this signature in database
GPG key ID: CAD341EFA92DDDE5
4 changed files with 18 additions and 45 deletions

View file

@ -1,19 +1,11 @@
{{define "body"}}
<div class="credits-legal" style="{{ .GetBackground }}">
<h2>Legal information</h2>
<p>
Other 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
<a href="https://github.com/anhgelus/now/blob/main/LICENSE" target="_blank">AGPL</a> license.
</p>
<h3>Image credits</h3>
{{ range $s := .Legal.ImagesSource }}
<p>{{ . }}</p>
{{ end }}
<h3>Font credits</h3>
<p>{{ .Legal.FontSource }}</p>
{{ .GetLegal }}
</div>
{{end}}