diff options
Diffstat (limited to 'themes/default/layouts/shortcodes/abbr.html')
-rw-r--r-- | themes/default/layouts/shortcodes/abbr.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/themes/default/layouts/shortcodes/abbr.html b/themes/default/layouts/shortcodes/abbr.html new file mode 100644 index 0000000..d661bd5 --- /dev/null +++ b/themes/default/layouts/shortcodes/abbr.html @@ -0,0 +1,4 @@ +{{- $abbr := default "TL;DR:" (.Get "abbr" | default (.Get 0)) -}} +{{- $title := default "Too long, didn't read" (.Get "title" | default (.Get 1)) -}} + +<abbr title="{{ $title }}">{{ $abbr | markdownify }}</abbr> |