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:
V.H. Belvadi 2019-05-13 11:22:11 +05:30 committed by Alex Shpak
parent 9aa0040ed5
commit 2c8c47c210

View file

@ -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 -->