diff options
author | V.H. Belvadi <hello@vhbelvadi.com> | 2019-05-02 07:51:11 +0530 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2019-05-15 09:53:49 +0200 |
commit | 8fe1725ff3a473b56064a439a19cf5f322e91d5a (patch) | |
tree | 427b3a55ebee4be9324a47ed8d03e65d0e7aeb74 /layouts/partials | |
parent | dce059f5079e8a4ccc676b90932b3cecebfeca4e (diff) |
Added check for .Site.Params.googleFonts
Functionality to enable or disable Google Fonts.
Diffstat (limited to 'layouts/partials')
-rw-r--r-- | layouts/partials/docs/html-head.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/partials/docs/html-head.html b/layouts/partials/docs/html-head.html index 2aca710..01f9cba 100644 --- a/layouts/partials/docs/html-head.html +++ b/layouts/partials/docs/html-head.html @@ -3,7 +3,10 @@ <title>{{- template "title" . }} | {{ .Site.Title -}}</title> <!-- Fonts for the theme --> -<link href="https://fonts.googleapis.com/css?family=Oxygen|Oxygen+Mono:300,400,700" rel="stylesheet"> +{{ with .Site.Params.googleFonts | default "true" }} + <link href="https://fonts.googleapis.com/css?family=Oxygen|Oxygen+Mono:300,400,700" rel="stylesheet"> +{{ else }} +{{ end }} <!-- Theme stylesheet, you can customize scss by creatig `assets/custom.scss` in your website --> {{ $styles := resources.Get "book.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }} |