From 8fe1725ff3a473b56064a439a19cf5f322e91d5a Mon Sep 17 00:00:00 2001 From: "V.H. Belvadi" Date: Thu, 2 May 2019 07:51:11 +0530 Subject: [PATCH] Added check for .Site.Params.googleFonts Functionality to enable or disable Google Fonts. --- layouts/partials/docs/html-head.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 @@ {{- template "title" . }} | {{ .Site.Title -}} - +{{ with .Site.Params.googleFonts | default "true" }} + +{{ else }} +{{ end }} {{ $styles := resources.Get "book.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}