mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-27 21:50:28 -04:00
https://search.google.com/search-console/amp/drilldown?resource_id=https%3A%2F%2Fjarv.is%2F&item_key=GhUIIhADIgNpbWciB2FtcC1pbWcolk4&hl=en&sharing_key=jrQsA5DhNhUqwYxUooGbfw
12 lines
676 B
HTML
12 lines
676 B
HTML
{{ $style := resources.Get "sass/main.scss" | resources.ExecuteAsTemplate "sass/main.scss" . | resources.ToCSS (dict "targetPath" "css/main.min.css") | resources.PostCSS (dict "config" "postcss.config.js") | resources.Fingerprint "sha256" }}
|
|
<link rel="stylesheet" href="{{ $style.Permalink }}">
|
|
|
|
{{/* Page-specific styles set via front matter, scoped via SCSS */}}
|
|
{{ with .Params.css }}
|
|
{{- $target := path.Join $.File.Dir "css/inline.min.scss" }}
|
|
|
|
{{- $css := . | resources.FromString $target | resources.ToCSS | resources.PostCSS (dict "config" "postcss.config.js") | resources.Fingerprint "sha256" -}}
|
|
|
|
<link rel="stylesheet" href="{{ $css.Permalink }}">
|
|
{{ end }}
|