Added check for .Site.Params.googleFonts
Functionality to enable or disable Google Fonts.
This commit is contained in:
parent
dce059f507
commit
8fe1725ff3
1 changed files with 4 additions and 1 deletions
|
@ -3,7 +3,10 @@
|
||||||
<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" }}
|
||||||
<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 }}
|
||||||
|
|
||||||
<!-- 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 -->
|
||||||
{{ $styles := resources.Get "book.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
|
{{ $styles := resources.Get "book.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
|
||||||
|
|
Loading…
Reference in a new issue