fonts: Make format optional

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2022-11-27 06:03:45 +01:00
parent f58432fa26
commit 9ee58ee42a
+1 -1
View File
@@ -79,6 +79,6 @@ fonts:
font-family: "{{ font.family }}";{% if style.weight %}
font-weight: {{ style.weight }};{% endif %}{% if style.style %}
font-style: {{ style.style}};{% endif %}
src: url("{{ style.url | absolute_url }}") format("{{ style.format }}");
src: url("{{ style.url | absolute_url }}"){% if style.format %} format("{{ style.format }}"){% endif %};
}
{% endfor %}{% endfor %}