feat(shortcode): add script shortcode (#359)
This commit is contained in:
4
layouts/partials/scratch/style.html
Normal file
4
layouts/partials/scratch/style.html
Normal file
@@ -0,0 +1,4 @@
|
||||
{{- $this := .scratch.Get "this" -}}
|
||||
{{- $style := $this.style | default slice -}}
|
||||
{{- $style = $style | append (slice .data) -}}
|
||||
{{- .scratch.SetInMap "this" "style" $style -}}
|
||||
@@ -1,4 +0,0 @@
|
||||
{{- $this := .scratch.Get "this" -}}
|
||||
{{- $stylesheet := $this.stylesheet | default slice -}}
|
||||
{{- $stylesheet = $stylesheet | append (slice .data) -}}
|
||||
{{- .scratch.SetInMap "this" "stylesheet" $stylesheet -}}
|
||||
Reference in New Issue
Block a user