Added missing font variants to load from Google Fonts

This commit is contained in:
squidfunk 2022-02-21 20:34:20 +01:00
parent de81a90794
commit 4f641cc0ee
2 changed files with 4 additions and 4 deletions

View File

@ -53,8 +53,8 @@
{% set font = config.theme.font %}
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family={{
font.text | replace(' ', '+') + ':300,400,400i,700%7C' +
font.code | replace(' ', '+')
font.text | replace(' ', '+') + ':300,300i,400,400i,700,700i%7C' +
font.code | replace(' ', '+') + ':400,400i,700,700i'
}}&display=fallback">
<style>:root{--md-text-font:"{{ font.text }}";--md-code-font:"{{ font.code }}"}</style>
{% endif %}

View File

@ -107,8 +107,8 @@
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css?family={{
font.text | replace(' ', '+') + ':300,400,400i,700%7C' +
font.code | replace(' ', '+')
font.text | replace(' ', '+') + ':300,300i,400,400i,700,700i%7C' +
font.code | replace(' ', '+') + ':400,400i,700,700i'
}}&display=fallback"
/>
<style>