Static images now use flask url_for to get url
This commit is contained in:
@@ -25,16 +25,16 @@
|
||||
<picture>
|
||||
{% for img in service['images'] %}
|
||||
{% if not loop.last %}
|
||||
<source srcset="{{ img }}"
|
||||
<source srcset="{{ url_for('static', filename=img) }}"
|
||||
media="(max-width: {{ config.IMG_BREAKPOINTS[loop.index] }})" />
|
||||
{% else %}
|
||||
<source srcset="{{ img }}"
|
||||
<source srcset="{{ url_for('static', filename=img) }}"
|
||||
media="(min-width: {{ config.IMG_BREAKPOINTS[loop.index] }})" />
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
<img class="img-fluid card-img-top"
|
||||
src="{{ service['images'][1] }}">
|
||||
src="{{ url_for('static', filename=service['images'][1]) }}">
|
||||
</picture>
|
||||
<div class="card-body">
|
||||
<h1 class="card-title text-center text-primary">{{ service['title'] }}</h1>
|
||||
|
||||
Reference in New Issue
Block a user