Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/tummychow/lanyon-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBhavin Gandhi <bhavin7392@gmail.com>2021-01-03 20:56:05 +0300
committerBhavin Gandhi <bhavin7392@gmail.com>2021-01-03 21:08:12 +0300
commit9d46e496045f333cef45a7dcf58c34eeccc0b9f6 (patch)
treef844d7f34fb33f12c54cbc07b1b2ba789038aa4b
parent6d952adb837c3763b42bf81639e3998e2c103d7a (diff)
Make it possible to disable Google fonts
``` params: disableFonts: true ``` Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com>
-rw-r--r--exampleSite/config.json3
-rw-r--r--layouts/partials/head.html2
2 files changed, 4 insertions, 1 deletions
diff --git a/exampleSite/config.json b/exampleSite/config.json
index 07402ca..7cfe5a9 100644
--- a/exampleSite/config.json
+++ b/exampleSite/config.json
@@ -33,6 +33,7 @@
"Github": {
"Url": "http://github.com/tummychow/lanyon-hugo",
"Head": "master"
- }
+ },
+ "disableFonts": false
}
}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 14d6147..4407433 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -16,7 +16,9 @@
<link rel="stylesheet" href="/css/poole.css">
<link rel="stylesheet" href="/css/syntax.css">
<link rel="stylesheet" href="/css/lanyon.css">
+ {{- if not .Site.Params.disableFonts }}
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Serif:400,400italic,700|PT+Sans:400">
+ {{- end }}
{{- range .Site.Params.customCSS }}
<link rel="stylesheet" href="{{ . | relURL }}">
{{- end }}