dynamic header

main
alexanderroese 2024-06-21 15:30:13 +02:00
parent 79c6247bd9
commit a71d6fecd1
2 changed files with 4 additions and 4 deletions

View File

@ -59,7 +59,7 @@
endcapture
%}
console.log("1", "{{ settings.color_schemes["scheme-shx-texte-navbar"]["settings"]["background"] }}", {{ shx_current_page }})
console.log("2", "{{ 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
assign shx_header_logo = settings.shx_logo_texte | asset_url
elsif shx_current_page contains "figuren"
assign shx_header_logo = settings.shx_logo_figuren
assign shx_header_logo = settings.shx_logo_figuren | asset_url
endif
%}
<h1>{{ settings.logo | asset_url }}</h1>
<h1>{{ settings.shx_logo_texte }}</h1>
<h1>{{ settings.shx_logo_texte | asset_url }}</h1>
{{ shx_header_logo | image_url: width: 600 | image_tag:
class: 'header__heading-logo motion-reduce',