- Add partials in the resources folder for each of the major resources of my site - Consolidate .css and .js files via resources.Concat where possible
11 lines
337 B
HTML
11 lines
337 B
HTML
{{ $sectionCSS := dict }}
|
|
{{ $sectionStylesheet := "" }}
|
|
{{ if .IsHome }}
|
|
{{ $sectionStylesheet = printf "styles/home.css" }}
|
|
{{ else }}
|
|
{{ $sectionStylesheet = printf "styles/%s.css" .Section }}
|
|
{{ end }}
|
|
{{ with resources.Get $sectionStylesheet }}
|
|
{{ $sectionCSS = . | fingerprint "sha512" }}
|
|
{{ end }}
|
|
{{ return $sectionCSS }}
|