feat(shortcodes): replace [align]/[float] with [style] and add [style]

This commit is contained in:
Dillon
2020-03-02 16:47:28 +08:00
parent aaff1514db
commit f8a7fd1df9
8 changed files with 24 additions and 33 deletions

View 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 -}}