mirror of
https://github.com/alex-shpak/hugo-book.git
synced 2024-11-22 11:29:28 +00:00
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:
parent
bfe110c797
commit
76f87feed6
@ -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 -->
|
||||||
|
Loading…
Reference in New Issue
Block a user