Google Fonts deactivation improvements.

Changed the with block to an if block to enable turning off of Google Fonts from config.
This commit is contained in:
V.H. Belvadi 2019-05-03 15:22:10 +05:30 committed by Alex Shpak
parent bfe110c797
commit 76f87feed6

View file

@ -3,9 +3,8 @@
<title>{{- template "title" . }} | {{ .Site.Title -}}</title> <title>{{- template "title" . }} | {{ .Site.Title -}}</title>
<!-- Fonts for the theme --> <!-- Fonts for the theme -->
{{ with .Site.Params.googleFonts | default "true" }} {{ if default true .Site.Params.googleFonts }}
<link href="https://fonts.googleapis.com/css?family=Oxygen|Oxygen+Mono:300,400,700" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Oxygen|Oxygen+Mono:300,400,700" rel="stylesheet">
{{ else }}
{{ end }} {{ end }}
<!-- Theme stylesheet, you can customize scss by creatig `assets/custom.scss` in your website --> <!-- Theme stylesheet, you can customize scss by creatig `assets/custom.scss` in your website -->