dynamic header

main
alexanderroese 2024-06-21 15:33:02 +02:00
parent a71d6fecd1
commit 2eb18a7ac7
2 changed files with 5 additions and 5 deletions

View File

@ -59,7 +59,7 @@
endcapture
%}
console.log("2", "{{ 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,14 +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.logo | asset_url }}</h1>
<h1>{{ settings.shx_logo_texte | asset_url }}</h1>
<h1>{{ settings.logo }}</h1>
<h1>{{ settings.shx_logo_texte }}</h1>
{{ shx_header_logo | image_url: width: 600 | image_tag:
class: 'header__heading-logo motion-reduce',