aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorV.H. Belvadi <hello@vhbelvadi.com>2019-05-13 11:22:11 +0530
committerAlex Shpak <alex-shpak@users.noreply.github.com>2019-05-15 09:53:49 +0200
commit2c8c47c210361116037bb2ac9264dca26e0fd28a (patch)
tree8e4627a3c2e5c2a9aba8cab3a7c90487a735f666 /layouts
parent9aa0040ed5baf3840ee172da076d9c33b485cf54 (diff)
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.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/docs/html-head.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html
index 8556d9f..35d0e81 100644
--- a/layouts/partials/docs/html-head.html
+++ b/layouts/partials/docs/html-head.html
@@ -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 -->