diff options
| author | William Hergès <william@herges.fr> | 2025-09-07 15:22:18 +0200 |
|---|---|---|
| committer | William Hergès <william@herges.fr> | 2025-09-07 15:22:18 +0200 |
| commit | e2f739c9e19f57b72b599eaf5bfc10265e62ddb8 (patch) | |
| tree | 5f70c95d68ada9d8292ceec6a06d38dffdce0aa9 /templates/base/base.gohtml | |
| parent | e8da79df02b9045146e2a0cb9e035f14a68537c6 (diff) | |
feat(style): change tag to now
Diffstat (limited to 'templates/base/base.gohtml')
| -rw-r--r-- | templates/base/base.gohtml | 5 |
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"> |
