diff options
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> + |