diff options
Diffstat (limited to 'layouts/shortcodes')
| -rw-r--r-- | layouts/shortcodes/html-tag.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/layouts/shortcodes/html-tag.html b/layouts/shortcodes/html-tag.html new file mode 100644 index 0000000..15a7814 --- /dev/null +++ b/layouts/shortcodes/html-tag.html @@ -0,0 +1,4 @@ +{{ $optBlock := dict "display" "block" }} +{{ print "<" | safeHTML }}{{ .Get "tag" | default "div" }}{{ with .Get "id" }} id="{{ . }}"{{ end }}{{ with .Get "class" }} class="{{ . }}"{{ end }}{{ with .Get "style" }} style="{{ . | safeCSS }}"{{ end }}{{ print ">" | safeHTML }} +{{ with .Inner }}{{ . | $.Page.RenderString $optBlock }}{{ end }} +{{ print "</" | safeHTML }}{{ .Get "tag" | default "div" }}{{ print ">" | safeHTML }} |
