summaryrefslogtreecommitdiffstats
path: root/layouts/shortcodes/html-tag.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes/html-tag.html')
-rw-r--r--layouts/shortcodes/html-tag.html4
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 }}