1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 12:55:31 -04:00
2020-04-26 12:16:25 -04:00
parent 847c5b2b48
commit 6360e58f60
7 changed files with 35 additions and 24 deletions

View File

@@ -3,10 +3,9 @@
{{/* Page-specific styles set via front matter, scoped via SCSS */}}
{{ with .Params.css }}
{{- $sass := printf "div#content { %s }" . }}
{{- $target := path.Join $.File.Dir "css/inline.min.scss" }}
{{- $css := $sass | resources.FromString $target | resources.ToCSS | resources.PostCSS (dict "config" "postcss.config.js") | resources.Fingerprint "sha256" -}}
{{- $css := . | resources.FromString $target | resources.ToCSS | resources.PostCSS (dict "config" "postcss.config.js") | resources.Fingerprint "sha256" -}}
<link rel="stylesheet" href="{{ $css.Permalink }}">
{{ end }}