dynamic header logo

main
alexanderroese 2024-06-21 11:40:58 +02:00
parent e8feb66557
commit cd5bd49a28
1 changed files with 5 additions and 0 deletions

View File

@ -176,6 +176,11 @@
{%- assign logo_height = settings.logo_width | divided_by: settings.logo.aspect_ratio -%}
{% capture sizes %}(max-width: {{ settings.logo_width | times: 2 }}px) 50vw, {{ settings.logo_width }}px{% endcapture %}
{% capture widths %}{{ settings.logo_width }}, {{ settings.logo_width | times: 1.5 | round }}, {{ settings.logo_width | times: 2 }}{% endcapture %}
<script>
console.log("logo", {{ settings.logo }})
</script>
{{ settings.logo | image_url: width: 600 | image_tag:
class: 'header__heading-logo motion-reduce',
widths: widths,