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

@@ -1,4 +1,9 @@
.homepage-header { .homepage-header {
padding: 1rem 0; padding: 1rem 0;
text-align: center; text-align: center;
}
.lang-toggle-icon svg {
width: 64px;
height: 24px;
} }

View File

@@ -58,9 +58,9 @@
{{- $currentLang := $page.Language.Lang -}} {{- $currentLang := $page.Language.Lang -}}
{{- range $page.AllTranslations }} {{- range $page.AllTranslations }}
{{- if ne .Language.Lang $currentLang }} {{- if ne .Language.Lang $currentLang }}
<li> <li class="lang-toggle-icon">
<a href="{{ .Permalink }}" title="{{ .Language.LanguageName }}"> <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> </a>
</li> </li>
{{- end }} {{- end }}