Removed preconnect meta tag if Google Fonts are disabled

This commit is contained in:
Richard Körber 2018-09-03 09:32:48 +02:00 committed by Martin Donath
parent ca4bb5e4be
commit 7d20ae8561

View File

@ -124,10 +124,9 @@
<!-- Webfonts --> <!-- Webfonts -->
{% block fonts %} {% block fonts %}
<link href="https://fonts.gstatic.com" rel="preconnect" crossorigin />
<!-- Load fonts from Google --> <!-- Load fonts from Google -->
{% if font != false %} {% if font != false %}
<link href="https://fonts.gstatic.com" rel="preconnect" crossorigin />
<link rel="stylesheet" type="text/css" <link rel="stylesheet" type="text/css"
href="https://fonts.googleapis.com/css?family={{ href="https://fonts.googleapis.com/css?family={{
font.text | replace(' ', '+') + ':300,400,400i,700|' + font.text | replace(' ', '+') + ':300,400,400i,700|' +