Update Google fonts to remove unused weight and CSS API v2.
The 300 weight of Source Code Pro is not used anywhere. This change also updates to using Google Fonts CSS API v2 and specifying display=swap to avoid a "flash of invisible text". Resolves #241
This commit is contained in:
parent
0f0ea7e824
commit
e0d18dc67c
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if USE_GOOGLE_FONTS != False %}
|
{% if USE_GOOGLE_FONTS != False %}
|
||||||
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro|Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,400;0,700;1,400&family=Source+Sans+Pro:ital,wght@0,300;0,400;0,700;1,400&display=swap" rel="stylesheet">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if USE_LESS %}
|
{% if USE_LESS %}
|
||||||
|
|
Loading…
Reference in a new issue