forgot to push the dropcap shortcode
authordanix <danix@danix.xyz>
Sun, 19 Feb 2023 08:46:36 +0000 (09:46 +0100)
committerdanix <danix@danix.xyz>
Sun, 19 Feb 2023 08:46:36 +0000 (09:46 +0100)
layouts/shortcodes/dropcap.html [new file with mode: 0644]

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