feat: strengthen operator template and localized SEO UX
This commit is contained in:
@@ -4,9 +4,11 @@
|
||||
The region/compliance data layer (age/RG/currency/payment filtering) is
|
||||
applied headlessly by locale-switcher.html — it no longer renders a visible
|
||||
selector, but its script must still run on every page. */ -}}
|
||||
{{- $noCtaSlugs := slice "faq" "responsible-gambling" "terms" "privacy-policy" "cookie-policy" "affiliate-disclosure" "about" "editorial-policy" -}}
|
||||
{{- $hideCta := or .Params.hideCta (in $noCtaSlugs .Slug) (eq .Section "authors") -}}
|
||||
<header class="sticky top-0 z-40 border-b border-secondary/10 bg-white/95 backdrop-blur">
|
||||
<div class="site-container flex h-16 items-center gap-3 md:gap-4">
|
||||
<a href="{{ "/" | relURL }}" class="flex shrink-0 items-center gap-2 no-underline" aria-label="{{ .Site.Data.brand.name }} home">
|
||||
<a href="{{ site.Home.RelPermalink }}" class="flex shrink-0 items-center gap-2 no-underline" aria-label="{{ .Site.Data.brand.name }} {{ i18n "home" }}">
|
||||
{{ partial "responsive-image.html" (dict
|
||||
"src" .Site.Data.brand.logoPath
|
||||
"alt" (printf "%s logo" .Site.Data.brand.name)
|
||||
@@ -19,9 +21,11 @@
|
||||
|
||||
<div class="ml-auto flex shrink-0 items-center gap-2">
|
||||
{{ if gt (len site.Languages) 1 }}{{ partial "language-switcher.html" . }}{{ end }}
|
||||
<span class="hidden sm:inline-flex">
|
||||
{{ partial "cta-button.html" (dict "page" . "text" (i18n "playNow")) }}
|
||||
</span>
|
||||
{{ if not $hideCta }}
|
||||
<span class="hidden sm:inline-flex">
|
||||
{{ partial "cta-button.html" (dict "page" . "text" (i18n "playNow")) }}
|
||||
</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
{{ partial "locale-switcher.html" . }}
|
||||
|
||||
Reference in New Issue
Block a user