forgot to push the dropcap shortcode
[theme-danix.xyz.git] / layouts / shortcodes / dropcap.html
diff --git a/layouts/shortcodes/dropcap.html b/layouts/shortcodes/dropcap.html
new file mode 100644 (file)
index 0000000..25a2e1f
--- /dev/null
@@ -0,0 +1,14 @@
+{{/*
+       * The dropcap shortcode:
+       * 
+       * Usage:
+       * 
+       * {{< dropcap class="some class" >}}
+       * your paragraph that will have a drop cap here
+       * {{< /dropcap >}}
+       * 
+       */}}
+
+<p class="has-drop-cap" {{ if .Get "class"}}class="{{ with .Get "class"}}{{.}}{{ end }}"{{end}}>
+       {{ .Inner }}
+</p>
\ No newline at end of file