test: use custom scss for toggle icon
All checks were successful
Blog Deployment / Check-Rebuild (push) Successful in 5s
Blog Deployment / Build (push) Has been skipped
Blog Deployment / Deploy-Staging (push) Successful in 10s
Blog Deployment / Test-Staging (push) Successful in 2s
Blog Deployment / Merge (push) Has been skipped
Blog Deployment / Deploy-Production (push) Has been skipped
Blog Deployment / Test-Production (push) Has been skipped
Blog Deployment / Clean (push) Has been skipped
Blog Deployment / Notify (push) Has been skipped

This commit is contained in:
2025-06-24 20:28:58 +00:00
parent 2b651f14d3
commit 5973472126
2 changed files with 7 additions and 2 deletions

View File

@@ -2,3 +2,8 @@
padding: 1rem 0;
text-align: center;
}
.lang-toggle-icon svg {
width: 64px;
height: 24px;
}

View File

@@ -58,9 +58,9 @@
{{- $currentLang := $page.Language.Lang -}}
{{- range $page.AllTranslations }}
{{- if ne .Language.Lang $currentLang }}
<li>
<li class="lang-toggle-icon">
<a href="{{ .Permalink }}" title="{{ .Language.LanguageName }}">
<object data="/icons/toggle_to_{{ .Language.Lang }}.svg" type="image/svg+xml" class="language-toggle"></object>
{{ partial "helper/icon" (printf "toggle_to_%s" .Language.Lang) }}
</a>
</li>
{{- end }}