feat(shortcodes): replace [align]/[float] with [style] and add [style]
This commit is contained in:
3
layouts/shortcodes/style.html
Normal file
3
layouts/shortcodes/style.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{{- $content := .Inner | .Page.RenderString -}}
|
||||
{{- $tag := .Get 1 | default "div" -}}
|
||||
{{- printf `<%s style="%s">%s</%s>` $tag ($.Get 0) $content $tag | safeHTML -}}
|
||||
Reference in New Issue
Block a user