From cdc86d37cf0c2ea47029d5290bdcdedd3d589195 Mon Sep 17 00:00:00 2001 From: Steb Date: Fri, 15 May 2026 15:26:33 +0200 Subject: [PATCH] update logo with text layout --- src/data/sections/about.toml | 3 ++- .../siwa/assets/css/templates/section/logo-with-text.css | 4 ++++ .../siwa/layouts/_partials/sections/logo-with-text.html | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/data/sections/about.toml b/src/data/sections/about.toml index b20290c..f13e437 100644 --- a/src/data/sections/about.toml +++ b/src/data/sections/about.toml @@ -3,7 +3,8 @@ shadow = true shadowOpacity = 0.8 content = "about.md" zIndex = 20 -padding = 40 +padding = 54 +textAlign = "justify" [logo] image = "/images/logos/SIWA_full.png" diff --git a/src/themes/siwa/assets/css/templates/section/logo-with-text.css b/src/themes/siwa/assets/css/templates/section/logo-with-text.css index 92b0134..0258a83 100644 --- a/src/themes/siwa/assets/css/templates/section/logo-with-text.css +++ b/src/themes/siwa/assets/css/templates/section/logo-with-text.css @@ -6,6 +6,10 @@ min-width: 400px; } +#{{ $id }}-centered-container > .text { + text-align: {{ $config.textAlign }}; +} + @media (max-width: 1000px) { #{{ $id }}-centered-container > img { width: 100%; diff --git a/src/themes/siwa/layouts/_partials/sections/logo-with-text.html b/src/themes/siwa/layouts/_partials/sections/logo-with-text.html index 4d97064..8140966 100644 --- a/src/themes/siwa/layouts/_partials/sections/logo-with-text.html +++ b/src/themes/siwa/layouts/_partials/sections/logo-with-text.html @@ -14,5 +14,5 @@ {{- end }} {{- with site.GetPage $config.content -}} -
{{ .Content }}
+
{{ .Content }}
{{- end }} \ No newline at end of file