summaryrefslogtreecommitdiffstats
path: root/layouts/shortcodes
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-09 02:01:50 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-09 02:01:50 +0200
commit70ed284bfb759fa134abd6251f83b8e3e4ae6090 (patch)
treea068f6507f9e9de8362d147609ea8d0d5c707685 /layouts/shortcodes
parent4110b4e8d3e63a1d198d961107b549eeca5d1605 (diff)
downloadgohugo-theme-ed-70ed284bfb759fa134abd6251f83b8e3e4ae6090.tar.gz
Add shortcodes
Diffstat (limited to 'layouts/shortcodes')
-rw-r--r--layouts/shortcodes/abbr.html2
-rw-r--r--layouts/shortcodes/br.html1
-rw-r--r--layouts/shortcodes/year.html1
3 files changed, 4 insertions, 0 deletions
diff --git a/layouts/shortcodes/abbr.html b/layouts/shortcodes/abbr.html
new file mode 100644
index 0000000..cee5c3d
--- /dev/null
+++ b/layouts/shortcodes/abbr.html
@@ -0,0 +1,2 @@
+<!-- abbr HTML tag -->
+<abbr title="{{ .Get "title" }}">{{ .Get "text" }}</abbr>
diff --git a/layouts/shortcodes/br.html b/layouts/shortcodes/br.html
index 0ca25d9..4e84243 100644
--- a/layouts/shortcodes/br.html
+++ b/layouts/shortcodes/br.html
@@ -1 +1,2 @@
+<!-- br HTML tag -->
<br>
diff --git a/layouts/shortcodes/year.html b/layouts/shortcodes/year.html
new file mode 100644
index 0000000..6b40db5
--- /dev/null
+++ b/layouts/shortcodes/year.html
@@ -0,0 +1 @@
+{{ now.Format "2006" }}