mirror of https://github.com/escalate/hugo-split-theme.git

Robert
19.32.2020 7be5e29081031c5370e3f6b3299e543be6de58aa
added option to add custom style.css
2 files modified
13 ■■■■■ changed files
README.md 10 ●●●●● patch | view | raw | blame | history
layouts/partials/head.html 3 ●●●●● patch | view | raw | blame | history
README.md
@@ -114,6 +114,16 @@
  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).
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 }}