1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-19 04:55:30 -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

@@ -250,7 +250,9 @@
on <a class="date" href="{{ (.OutputFormats.Get "html").Permalink }}">{{ .Date.Format "January 2, 2006" }}</a>
</p>
{{ .Content }}
<div id="content">
{{ .Content }}
</div>
</article>
<footer>

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 }}