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:51:52 +0300
committerBhavin Gandhi <bhavin7392@gmail.com>2021-01-03 20:51:52 +0300
commit6d952adb837c3763b42bf81639e3998e2c103d7a (patch)
tree3d672d1c1ccf7059c32f795c2724f6fa69bdf06c
parentf21b74d1b81397a60023f0230158a28024a36220 (diff)
Add option to include extra CSS files
Can be done by adding something like this to the config. ``` params: customCSS: - "css/test.css" - "css/two.css" ``` Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com>
-rw-r--r--layouts/partials/head.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index c00db77..14d6147 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -17,6 +17,9 @@
<link rel="stylesheet" href="/css/syntax.css">
<link rel="stylesheet" href="/css/lanyon.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Serif:400,400italic,700|PT+Sans:400">
+ {{- 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">