mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-08-03 11:18:36 -04:00
Added preconnect for Google Fonts for faster loading
This commit is contained in:
@@ -57,6 +57,7 @@
|
||||
<script src="{{ base_url }}/assets/javascripts/modernizr.1aa3b519.js"></script>
|
||||
{% endblock %}
|
||||
{% block fonts %}
|
||||
<link href="https://fonts.gstatic.com" rel="preconnect" crossorigin>
|
||||
{% if font != false %}
|
||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family={{
|
||||
font.text | replace(' ', '+') + ':300,400,400i,700|' +
|
||||
|
||||
Reference in New Issue
Block a user