Allow custom stylesheets

This commit is contained in:
Clara Wildpaner
2021-04-16 02:00:56 +02:00
parent db1e525ee8
commit a97c1968ea
2 changed files with 6 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ summarylength = 25
logo_footer = "images/logo-footer.png"
favicon_icon = "images/favicon.ico"
favicon_shortcut_icon = "images/favicon.png"
custom_stylesheets = [] # [ "scss/my_1.scss", "scss/my_2.scss" ]
dateFormat = "26 FEB 1994"
# Meta data
description = "Roxo Hugo themes | Design Agency Template by StaticMania"

View File

@@ -19,6 +19,11 @@
{{ $style := resources.Get "scss/style.scss" | resources.ToCSS | minify }}
<link href="{{ $style.Permalink }}" rel="stylesheet" />
{{ range .Site.Params.custom_stylesheets -}}
{{ $style := resources.Get . | resources.ToCSS | minify }}
<link href="{{ $style.Permalink }}" rel="stylesheet" />
{{- end }}
<!--Favicon-->
<link rel="shortcut icon" href="{{ .Site.Params.favicon_shortcut_icon | absURL }}" type="image/x-icon" />
<link rel="icon" href="{{ .Site.Params.favicon_icon | absURL }}" type="image/x-icon" />