From 023b9c7f5600be08e03ae911fd8c6ed132d319df Mon Sep 17 00:00:00 2001 From: rlskoeser Date: Fri, 29 Sep 2023 15:20:15 -0400 Subject: [PATCH] Move translation toggles on homepage to top right corner #375 --- themes/startwords/assets/scss/_i18n.scss | 9 +++++++++ themes/startwords/layouts/index.html | 3 +-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/themes/startwords/assets/scss/_i18n.scss b/themes/startwords/assets/scss/_i18n.scss index 1366662ab..145f1da78 100644 --- a/themes/startwords/assets/scss/_i18n.scss +++ b/themes/startwords/assets/scss/_i18n.scss @@ -136,6 +136,15 @@ aside.translations { } } +/* adjust placement on homepage, where it is in the top right corner */ +.home aside.translations { + padding: 8px; + @media (min-width: $breakpoint-m) { + padding: 15px; + } +} + + .issue-list { .languages { padding: 2rem 0 1.5rem 2rem; diff --git a/themes/startwords/layouts/index.html b/themes/startwords/layouts/index.html index 7568a3e43..f99c7ea3a 100644 --- a/themes/startwords/layouts/index.html +++ b/themes/startwords/layouts/index.html @@ -9,13 +9,12 @@ {{ define "main" }}

{{ .Site.Title }}

+ {{ partial "translations.html" . }}
-
- {{ partial "translations.html" . }} {{/* get issues for the current language; fill in with all issues; then choose the first. */}} {{ $issues := where .Site.Pages "Type" "issue" | lang.Merge (where .Site.AllPages "Type" "issue") }} {{ $issue := index ($issues) 0 }}