mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Added missing font variants to load from Google Fonts
This commit is contained in:
parent
de81a90794
commit
4f641cc0ee
@ -53,8 +53,8 @@
|
|||||||
{% set font = config.theme.font %}
|
{% set font = config.theme.font %}
|
||||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family={{
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family={{
|
||||||
font.text | replace(' ', '+') + ':300,400,400i,700%7C' +
|
font.text | replace(' ', '+') + ':300,300i,400,400i,700,700i%7C' +
|
||||||
font.code | replace(' ', '+')
|
font.code | replace(' ', '+') + ':400,400i,700,700i'
|
||||||
}}&display=fallback">
|
}}&display=fallback">
|
||||||
<style>:root{--md-text-font:"{{ font.text }}";--md-code-font:"{{ font.code }}"}</style>
|
<style>:root{--md-text-font:"{{ font.text }}";--md-code-font:"{{ font.code }}"}</style>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -107,8 +107,8 @@
|
|||||||
<link
|
<link
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
href="https://fonts.googleapis.com/css?family={{
|
href="https://fonts.googleapis.com/css?family={{
|
||||||
font.text | replace(' ', '+') + ':300,400,400i,700%7C' +
|
font.text | replace(' ', '+') + ':300,300i,400,400i,700,700i%7C' +
|
||||||
font.code | replace(' ', '+')
|
font.code | replace(' ', '+') + ':400,400i,700,700i'
|
||||||
}}&display=fallback"
|
}}&display=fallback"
|
||||||
/>
|
/>
|
||||||
<style>
|
<style>
|
||||||
|
Loading…
Reference in New Issue
Block a user