dynamic header
parent
0df3f09264
commit
f610e91bba
|
@ -216,7 +216,22 @@
|
|||
{%- assign logo_height = settings.logo_width | divided_by: settings.logo.aspect_ratio -%}
|
||||
{% capture sizes %}(min-width: 750px) {{ settings.logo_width }}px, 50vw{% endcapture %}
|
||||
{% capture widths %}{{ settings.logo_width }}, {{ settings.logo_width | times: 1.5 | round }}, {{ settings.logo_width | times: 2 }}{% endcapture %}
|
||||
{{ settings.logo | image_url: width: 600 | image_tag:
|
||||
|
||||
{% liquid
|
||||
capture shx_current_page
|
||||
render "shx-get-current-page"
|
||||
endcapture
|
||||
|
||||
assign shx_header_logo = settings.logo
|
||||
|
||||
if shx_current_page contains "texte"
|
||||
shx_header_logo = settings.shx_logo_texte
|
||||
elsif shx_current_page contains "figuren"
|
||||
shx_header_logo = settings.shx_logo_figuren
|
||||
endif
|
||||
%}
|
||||
|
||||
{{ shx_header_logo | image_url: width: 600 | image_tag:
|
||||
class: 'header__heading-logo',
|
||||
widths: widths,
|
||||
height: logo_height,
|
||||
|
|
Loading…
Reference in New Issue