Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/rmaguiar/hugo-theme-color-your-world.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes/abbr.html')
-rw-r--r--layouts/shortcodes/abbr.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/layouts/shortcodes/abbr.html b/layouts/shortcodes/abbr.html
new file mode 100644
index 0000000..7884531
--- /dev/null
+++ b/layouts/shortcodes/abbr.html
@@ -0,0 +1,8 @@
+<!--
+ abbr "idk" "I don't know"
+-->
+
+{{ $abbr := (.Get 0) }}
+{{ $title := (.Get 1) }}
+
+<abbr title="{{ $title }}">{{ $abbr }}</abbr>