mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-10-23 06:44:27 -04:00
allow page-specific CSS to be set via shortcode and appear in <head>
TODO: Potential bug report w/ live server -- .Page.Scratch is only detected on first run, breaks after any changes trigger rebuild. Might be flaky on real builds too, will investigate.
This commit is contained in:
3
layouts/shortcodes/page-css.html
Normal file
3
layouts/shortcodes/page-css.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{{/* Allow page-specific CSS to be set from within its Markdown content and appear in <head> (see partials/head/head.html) */}}
|
||||
|
||||
{{- .Page.Scratch.Set "css" .Inner -}}
|
Reference in New Issue
Block a user