i have misunderstood how srcset works

This commit is contained in:
codl 2017-08-11 15:08:07 +02:00
parent 1a9753db49
commit 2b0d357385
No known key found for this signature in database
GPG Key ID: 6CD7C8891ED1233A
1 changed files with 5 additions and 3 deletions

View File

@ -17,9 +17,11 @@
<header>
<h1>
<a href="{{url_for('index')}}">
<img src="{{ st('logotype-200.png') }}" alt="Forget" width=200 srcset="{% for width in (200,400,600,800) -%}
{{ st('logotype-{}.png'.format(width)) }} {{width}}w,
{%- endfor %}"/>
<img src="{{ st('logotype-200.png') }}" alt="Forget" width='200px' sizes='200px' srcset="
{%- for width in (200,400,600,800) -%}
{{ st('logotype-{}.png'.format(width)) }} {{width}}w,
{%- endfor -%}
"/>
</a>
</h1>
</header>