fix: harden editorial brand rendering and SEO
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
<p class="mt-3 text-sm text-white/70">{{ $brand.tagline }}</p>
|
||||
<div class="mt-4 flex items-center gap-3">
|
||||
{{- range $brand.socialLinks -}}
|
||||
{{- if and .url (not (in .url ".example")) -}}
|
||||
<a href="{{ .url }}" target="_blank" rel="noopener nofollow" class="text-white/70 hover:text-white" aria-label="{{ .platform | title }}">
|
||||
{{- if eq .platform "twitter" -}}
|
||||
<svg class="h-5 w-5" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true"><path d="M18.9 2H22l-7.5 8.6L23 22h-6.8l-5.3-7-6.1 7H1.7l8-9.2L1 2h7l4.8 6.4L18.9 2Zm-2.4 18h1.9L7.6 4H5.6l10.9 16Z"/></svg>
|
||||
@@ -31,8 +32,12 @@
|
||||
<span class="text-sm">{{ .platform | title }}</span>
|
||||
{{- end -}}
|
||||
</a>
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
</div>
|
||||
{{- with $brand.contactEmail -}}
|
||||
{{- if not (in . ".example") -}}<p class="mt-3 text-sm"><a href="mailto:{{ . }}" class="text-white/80 hover:text-white">{{ . }}</a></p>{{- end -}}
|
||||
{{- end -}}
|
||||
</div>
|
||||
|
||||
{{/* Explore */}}
|
||||
@@ -52,9 +57,6 @@
|
||||
{{- range $legal -}}
|
||||
<li><a href="{{ .RelPermalink }}" class="text-white/80 no-underline hover:text-white hover:underline">{{ .LinkTitle }}</a></li>
|
||||
{{- end -}}
|
||||
<li>
|
||||
<button type="button" onclick="window.openCookieSettings && window.openCookieSettings()" class="text-white/80 underline-offset-2 hover:text-white hover:underline">{{ i18n "cookieSettings" }}</button>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
@@ -74,7 +76,11 @@
|
||||
<div class="site-container flex flex-col gap-3 py-6 text-xs text-white/60 md:flex-row md:items-center md:justify-between">
|
||||
<p>
|
||||
<span class="mr-2 inline-flex items-center rounded bg-white/10 px-2 py-1 font-bold text-white"><span data-age-value>{{ $brand.ageRestrictionDefault }}</span>+ {{ i18n "gambleResponsibly" }}</span>
|
||||
{{ printf (i18n "licenceStatement") $brand.legalOperatorName $brand.licenseAuthority $brand.licenseNumber }}
|
||||
{{- if and $brand.legalOperatorName $brand.licenseAuthority $brand.licenseNumber (not (in $brand.licenseNumber "XXX")) -}}
|
||||
{{ printf (i18n "licenceStatement") $brand.legalOperatorName $brand.licenseAuthority $brand.licenseNumber }}
|
||||
{{- else -}}
|
||||
{{ printf (i18n "editorialSiteStatement") $brand.name }}
|
||||
{{- end -}}
|
||||
</p>
|
||||
<p>
|
||||
© {{ now.Year }} {{ $brand.name }}. {{ i18n "allRightsReserved" }}
|
||||
|
||||
Reference in New Issue
Block a user