Allow custom stylesheets
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user