danix
's git repository
home
/
my projects
/
theme-danix.xyz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0042e5b
)
forgot to push the dropcap shortcode
author
danix
<danix@danix.xyz>
Sun, 19 Feb 2023 08:46:36 +0000
(09:46 +0100)
committer
danix
<danix@danix.xyz>
Sun, 19 Feb 2023 08:46:36 +0000
(09:46 +0100)
layouts/shortcodes/dropcap.html
[new file with mode: 0644]
patch
|
blob
diff --git a/layouts/shortcodes/dropcap.html
b/layouts/shortcodes/dropcap.html
new file mode 100644
(file)
index 0000000..
25a2e1f
--- /dev/null
+++ b/
layouts/shortcodes/dropcap.html
@@ -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