feat: add ability to add custom css and js
This commit is contained in:
parent
f0bfed856f
commit
4bb4bb00b4
3 changed files with 16 additions and 3 deletions
|
@ -24,9 +24,11 @@
|
|||
{{ $style := resources.Get "scss/main.scss" | resources.ToCSS | resources.Minify | resources.Fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $style.Permalink }}">
|
||||
|
||||
{{- range .Site.Params.customCSS }}
|
||||
<link rel="stylesheet" href="{{ . | absURL }}">
|
||||
{{- end }}
|
||||
{{ range $val := $.Site.Params.customCSS }}
|
||||
{{ if gt (len $val) 0 }}
|
||||
<link rel="stylesheet" type="text/css" href="{{ $val }}">
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<!-- Icons -->
|
||||
{{- partial "favicons.html" }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue