mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-12 01:50:52 +01:00
Added preconnect for Google Fonts for faster loading
This commit is contained in:
parent
de1c3d515e
commit
36ec35c2e4
@ -1,3 +1,7 @@
|
||||
mkdocs-material-2.x.x (2018-xx-xx)
|
||||
|
||||
* Added preconnect for Google Fonts for faster loading
|
||||
|
||||
mkdocs-material-2.6.5 (2018-02-22)
|
||||
|
||||
* Reverted --dev-addr flag removal from Dockerfile
|
||||
|
@ -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|' +
|
||||
|
@ -115,6 +115,9 @@
|
||||
|
||||
<!-- Webfonts -->
|
||||
{% block fonts %}
|
||||
<link href="https://fonts.gstatic.com" rel="preconnect" crossorigin />
|
||||
|
||||
<!-- Load fonts from Google -->
|
||||
{% if font != false %}
|
||||
<link rel="stylesheet" type="text/css"
|
||||
href="https://fonts.googleapis.com/css?family={{
|
||||
|
Loading…
Reference in New Issue
Block a user