aboutsummaryrefslogtreecommitdiff
path: root/templates/base
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-09-07 14:55:39 +0000
committerAnhgelus Morhtuuzh <william@herges.fr>2025-09-07 14:55:39 +0000
commit3a809d2571f8df178c436f463c9aade25a34c96e (patch)
tree6a4a0485b5650320afe5c1c2e61e9a8987db83a3 /templates/base
parente8da79df02b9045146e2a0cb9e035f14a68537c6 (diff)
parent14f30577f9b5f76d288abce6ba19bf6150936401 (diff)
Merge pull request '[Feat] Change tags in now' (#1) from feat/change-tags into main
Reviewed-on: https://git.anhgelus.world/anhgelus/now/pulls/1
Diffstat (limited to 'templates/base')
-rw-r--r--templates/base/base.gohtml5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/base/base.gohtml b/templates/base/base.gohtml
index 34d5451..894685b 100644
--- a/templates/base/base.gohtml
+++ b/templates/base/base.gohtml
@@ -1,4 +1,5 @@
{{define "base"}}
+ {{ $notRoot := ne .SEO.URL "/" }}
<!doctype html>
<html lang="fr" prefix="og: https://ogp.me/ns#">
<head>
@@ -20,7 +21,7 @@
</style>
<link rel="stylesheet" href="{{getAssetPath "styles.css"}}" />
{{template "opengraph-base" .SEO}}
- {{ if .Data.IsCustomPage }}
+ {{ if $notRoot }}
<style>
.links { {{ .Data.Color.Button.GetBackground }}{{ .Data.Color.Button.GetTextColor }} }
</style>
@@ -36,7 +37,7 @@
</div>
{{ $rings := getRings }}
{{ if ne $rings nil }}
- <div class="rings {{ if ne .SEO.URL "/" }}fixed{{ end }}">
+ <div class="rings {{ if $notRoot }}fixed{{ end }}">
{{ range $ring := $rings }}
<a href="{{ $ring.Link }}" target="_blank" class="ring">
<img src="{{ getImage $ring.Image }}" alt="{{ $ring.Name }} logo">