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:
authorStephen Jung <tummychow511@gmail.com>2021-01-04 03:26:42 +0300
committerGitHub <noreply@github.com>2021-01-04 03:26:42 +0300
commit7ecf978c5ec30d27f74b5d9337e5e5223393e8c5 (patch)
tree7ed95126c7093cdbe804353e015261bbfd71fba5
parent72aefc1d48448e2adfd50384d8203c0122c86fda (diff)
parent9d46e496045f333cef45a7dcf58c34eeccc0b9f6 (diff)
Merge pull request #33 from bhavin192/css-customization
CSS related customizations
-rw-r--r--exampleSite/config.json3
-rw-r--r--layouts/partials/head.html5
2 files changed, 7 insertions, 1 deletions
diff --git a/exampleSite/config.json b/exampleSite/config.json
index e1f6e17..be43a39 100644
--- a/exampleSite/config.json
+++ b/exampleSite/config.json
@@ -48,6 +48,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 c00db77..4407433 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -16,7 +16,12 @@
<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 }}
<!-- Icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/assets/apple-touch-icon-144-precomposed.png">