mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Removed preconnect meta tag if Google Fonts are disabled
This commit is contained in:
parent
ca4bb5e4be
commit
7d20ae8561
@ -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|' +
|
||||||
|
Loading…
Reference in New Issue
Block a user