mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-19 17:05:32 -04:00
*much* smarter way of setting page-specific CSS
via front matter instead of flaky shortcode/page scratch
This commit is contained in:
@@ -217,8 +217,8 @@
|
||||
div.highlight span.gs { font-weight: bold; }
|
||||
div.highlight span.lnt { color: #999999; user-select: none; }
|
||||
|
||||
{{/* Page-specific styles set via page-css shortcode */}}
|
||||
{{- with .Page.Scratch.Get "css" }}
|
||||
{{/* Page-specific styles set via front matter */}}
|
||||
{{- with .Params.css }}
|
||||
{{- . | safeCSS -}}
|
||||
{{ end -}}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user