aboutsummaryrefslogtreecommitdiff
path: root/backend/templates
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-10-05 15:16:20 +0200
committerWilliam Hergès <william@herges.fr>2025-10-05 15:16:20 +0200
commitfa5ac4040e8e2fc57bef5c598e1ceda4c2fc0a73 (patch)
tree5dbbba0ec6101fb666ee88a977a21ef95d55a2e9 /backend/templates
parent5d6198f168dd1a8598048718d149d1171df09c1a (diff)
feat(backend): add noreferer on external link and move target blank
Diffstat (limited to 'backend/templates')
-rw-r--r--backend/templates/base.html6
1 files changed, 2 insertions, 4 deletions
diff --git a/backend/templates/base.html b/backend/templates/base.html
index cf0d834..3af37f9 100644
--- a/backend/templates/base.html
+++ b/backend/templates/base.html
@@ -27,15 +27,13 @@
<body hx-push-url="true">
<header>
<img src="{{ static .Logo.Header }}" alt="Logo">
- <nav>
- {{ range .Links }}<a href="{{ .URL }}">{{ .Name }}</a>{{end}}
- </nav>
+ <nav>{{ range .Links }}{{ .Render }}{{end}}</nav>
</header>
{{ template "body" . }}
<footer>
<p>&copy; 2025 - Anhgelus Morthuuzh</p>
<p id="quote">«&thinsp;{{ .Quote }}&thinsp;»</p>
- <p><a href="/legal">Mentions légales</a>, <a href="https://git.anhgelus.world/anhgelus/small-web">code source</a>.</p>
+ <p><a href="/legal">Mentions légales</a>, <a href="https://git.anhgelus.world/anhgelus/small-web" target="_blank" rel="noreferrer">code source</a>.</p>
</footer>
{{ $script := asset "index.js" }}<script src="{{ $script.Src }}" integrity="{{ $script.Checksum }}" defer></script>
</body>