Updated googleFonts parameter behaviour
Congif googlefonts parameter now loads (by default or discards by setting) locally loaded Oxygen from _fonts.scss based on the user's preference.
This commit is contained in:
parent
9aa0040ed5
commit
2c8c47c210
1 changed files with 2 additions and 1 deletions
|
@ -4,7 +4,8 @@
|
|||
|
||||
<!-- Fonts for the theme -->
|
||||
{{ if default true .Site.Params.googleFonts }}
|
||||
<link href="https://fonts.googleapis.com/css?family=Oxygen|Oxygen+Mono:300,400,700" rel="stylesheet">
|
||||
{{ $fonts := resources.Get "_fonts.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $fonts.RelPermalink }}">
|
||||
{{ end }}
|
||||
|
||||
<!-- Theme stylesheet, you can customize scss by creatig `assets/custom.scss` in your website -->
|
||||
|
|
Loading…
Reference in a new issue