Skip to content
Snippets Groups Projects
Commit 6093944fd75c authored by Cédric Krier's avatar Cédric Krier :atom:
Browse files

Quote background-image url

parent 3f45947ec7ae
No related branches found
No related tags found
No related merge requests found
{% macro background(name) %} {% macro background(name) %}
<style> <style>
.background-{{ name }} { .background-{{ name }} {
background-image: url({{ url_for('static', filename='images/%s.jpg' % name) }}); background-image: url('{{ url_for('static', filename='images/%s.jpg' % name) }}');
} }
@media (max-width: 800px) { @media (max-width: 800px) {
.background-{{ name }} { .background-{{ name }} {
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
} }
@media (max-width: 800px) { @media (max-width: 800px) {
.background-{{ name }} { .background-{{ name }} {
background-image: url({{ url_for('static', filename='images/%s-800px.jpg' % name) }}); background-image: url('{{ url_for('static', filename='images/%s-800px.jpg' % name) }}');
} }
} }
@media (max-width: 400px) { @media (max-width: 400px) {
.background-{{ name }} { .background-{{ name }} {
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
} }
} }
@media (max-width: 400px) { @media (max-width: 400px) {
.background-{{ name }} { .background-{{ name }} {
background-image:url({{ url_for('static', filename='images/%s-400px.jpg' % name) }}); background-image:url('{{ url_for('static', filename='images/%s-400px.jpg' % name) }}');
} }
} }
</style> </style>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment