From 6d952adb837c3763b42bf81639e3998e2c103d7a Mon Sep 17 00:00:00 2001 From: Bhavin Gandhi Date: Sun, 3 Jan 2021 23:21:52 +0530 Subject: 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 --- layouts/partials/head.html | 3 +++ 1 file changed, 3 insertions(+) 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 @@ + {{- range .Site.Params.customCSS }} + + {{- end }} -- cgit v1.2.3 From 9d46e496045f333cef45a7dcf58c34eeccc0b9f6 Mon Sep 17 00:00:00 2001 From: Bhavin Gandhi Date: Sun, 3 Jan 2021 23:26:05 +0530 Subject: Make it possible to disable Google fonts ``` params: disableFonts: true ``` Signed-off-by: Bhavin Gandhi --- exampleSite/config.json | 3 ++- layouts/partials/head.html | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 @@ + {{- if not .Site.Params.disableFonts }} + {{- end }} {{- range .Site.Params.customCSS }} {{- end }} -- cgit v1.2.3