diff options
| author | William Hergès <william@herges.fr> | 2025-10-05 15:16:20 +0200 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2025-10-05 15:16:20 +0200 |
| commit | fa5ac4040e8e2fc57bef5c598e1ceda4c2fc0a73 (patch) | |
| tree | 5dbbba0ec6101fb666ee88a977a21ef95d55a2e9 /backend/templates | |
| parent | 5d6198f168dd1a8598048718d149d1171df09c1a (diff) | |
feat(backend): add noreferer on external link and move target blank
Diffstat (limited to 'backend/templates')
| -rw-r--r-- | backend/templates/base.html | 6 |
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>© 2025 - Anhgelus Morthuuzh</p> <p id="quote">« {{ .Quote }} »</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> |
