diff options
author | Brandon <brandon@btkoch.xyz> | 2024-10-26 19:51:38 -0400 |
---|---|---|
committer | Brandon <brandon@btkoch.xyz> | 2024-10-26 19:51:38 -0400 |
commit | cd0279d2787bbf265e12e309b8a61489c727bb2a (patch) | |
tree | 929cb425266bb2224665c1c989bffebe2d172f4f /layouts/shortcodes |
create repo
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r-- | layouts/shortcodes/columns.html | 7 | ||||
-rw-r--r-- | layouts/shortcodes/icon.html | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/layouts/shortcodes/columns.html b/layouts/shortcodes/columns.html new file mode 100644 index 0000000..536e87e --- /dev/null +++ b/layouts/shortcodes/columns.html @@ -0,0 +1,7 @@ +<div class="md-columns"> +{{ range split .Inner "<--->" }} +{{ printf "<div class=\"markdown-inner\">" | htmlUnescape | safeHTML }} +{{ . | safeHTML }} +{{ printf "</div>" | htmlUnescape | safeHTML }} +{{ end }} +</div> diff --git a/layouts/shortcodes/icon.html b/layouts/shortcodes/icon.html new file mode 100644 index 0000000..a61fac1 --- /dev/null +++ b/layouts/shortcodes/icon.html @@ -0,0 +1,4 @@ +<a href="{{ .Get "link" }}" target="_blank" rel="noopener noreferrer"> + <img src="{{ .Get "src" }}" alt="{{ .Get "alt" }}" style="width: 30px; height: 30px; font-size: 0; box-shadow: none; display: inline; " /> +</a> + |