diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-09 02:01:50 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-09 02:01:50 +0200 |
| commit | 70ed284bfb759fa134abd6251f83b8e3e4ae6090 (patch) | |
| tree | a068f6507f9e9de8362d147609ea8d0d5c707685 /layouts/shortcodes | |
| parent | 4110b4e8d3e63a1d198d961107b549eeca5d1605 (diff) | |
| download | gohugo-theme-ed-70ed284bfb759fa134abd6251f83b8e3e4ae6090.tar.gz | |
Add shortcodes
Diffstat (limited to 'layouts/shortcodes')
| -rw-r--r-- | layouts/shortcodes/abbr.html | 2 | ||||
| -rw-r--r-- | layouts/shortcodes/br.html | 1 | ||||
| -rw-r--r-- | layouts/shortcodes/year.html | 1 |
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" }} |
