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

github.com/escalate/hugo-split-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert <robert@dakkar.eu>2020-02-19 09:32:05 +0300
committerFelix Börner <github@felix-boerner.de>2020-04-09 14:51:21 +0300
commit7be5e29081031c5370e3f6b3299e543be6de58aa (patch)
treecb2e8eea102fb212650f3e4dec4ed36d2f31bf26
parent310a78afddd1c3835e122e1c4de0828f79525fa7 (diff)
added option to add custom style.css
-rw-r--r--README.md10
-rw-r--r--layouts/partials/head.html3
2 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index 7b29915..81c39bf 100644
--- a/README.md
+++ b/README.md
@@ -114,6 +114,16 @@ Get the ID of the YouTube video and add it to `youtubeId`. Make sure you delete
youtubeId = "dk9uNWPP7EA"
```
+##### Add Custom CSS
+
+Put custom css styles in static/css/style.css and enable this css in the config:
+
+```toml
+[[params.custom.css]]
+ enable = true
+```
+
+
##### Additional settings
Set `mute` to `true` if you want the video to play muted and `false` if you want the sound. The video is coded to autoplay and loop. If you want to change that the code can be found in [`layouts/partials/video.html`](//github.com/escalate/hugo-split-theme/tree/master/layouts/partials/video.html).
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index d2bf4bd..ba88970 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -24,6 +24,9 @@
<!-- Styles -->
<link rel="stylesheet" href="{{ "assets/css/split.css" | absURL }}" type="text/css" media="screen" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
+{{ if .Site.Params.custom.css.enable }}
+<link rel="stylesheet" href="{{ "css/style.css" | absURL }}" type="text/css" media="screen" />
+{{ end }}
<!-- Image Styles -->
{{ if .Site.Params.visual.image.enable }}