dynamic header logo

main
alexanderroese 2024-06-22 10:53:27 +02:00
parent 19fa09d2a0
commit be5a58314c
2 changed files with 10 additions and 2 deletions

View File

@ -59,7 +59,7 @@
endcapture 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> </script>

View File

@ -191,7 +191,15 @@
endif endif
%} %}
{{ {% if shx_current_page contains "texte" %} settings.logo {% else %} settings.shx_logo2 {% endif %} | image_url: width: 600 | image_tag: {% assign logo_image = settings.logo %}
{% if shx_current_page contains "texte" %}
{% assign logo_image = settings.logo %}
{% else %}
{% assign logo_image = settings.shx_logo2 %}
{% endif %}
{{ logo_image | image_url: width: 600 | image_tag:
class: 'header__heading-logo motion-reduce', class: 'header__heading-logo motion-reduce',
widths: widths, widths: widths,
height: logo_height, height: logo_height,