Add support for custom scss

This commit is contained in:
Neil Hanlon 2021-09-01 17:20:14 -04:00
parent 615e0611b5
commit 3f1d648b03
Signed by: neil
GPG Key ID: 705BC21EC3C70F34

View File

@ -16,6 +16,10 @@
{{ range .Site.Params.custom_css }} {{ range .Site.Params.custom_css }}
<link rel="stylesheet" href="{{ $.Site.BaseURL}}{{ . }}"> <link rel="stylesheet" href="{{ $.Site.BaseURL}}{{ . }}">
{{ end }} {{ end }}
{{ range .Site.Params.custom_scss }}
{{ $style := resources.Get . | resources.ToCSS }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
{{ end }}
{{ `<!--[if lt IE 9]> {{ `<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>