dynamic header

main
alexanderroese 2024-06-21 15:25:07 +02:00
parent 7f0d30603a
commit e41fd06691
2 changed files with 5 additions and 3 deletions

View File

@ -59,7 +59,7 @@
endcapture
%}
console.log("3", "{{ settings.color_schemes["scheme-shx-texte-navbar"]["settings"]["background"] }}", {{ shx_current_page }})
console.log("1", "{{ settings.color_schemes["scheme-shx-texte-navbar"]["settings"]["background"] }}", {{ shx_current_page }})
</script>

View File

@ -185,12 +185,14 @@
assign shx_header_logo = settings.logo
if shx_current_page contains "texte"
assign shx_header_logo = settings.shx_logo_texte | asset_url
assign shx_header_logo = settings.shx_logo_texte
elsif shx_current_page contains "figuren"
assign shx_header_logo = settings.shx_logo_figuren | asset_url
assign shx_header_logo = settings.shx_logo_figuren
endif
%}
<h1>{{ settings.shx_logo_texte }}</h1>
{{ shx_header_logo | image_url: width: 600 | image_tag:
class: 'header__heading-logo motion-reduce',
widths: widths,