summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
authorSerghei Iakovlev <egrep@protonmail.ch>2022-05-11 01:03:10 +0200
committerSerghei Iakovlev <egrep@protonmail.ch>2022-05-11 01:03:10 +0200
commit52ec5d04d585a4ac4b5a4215d3b0aa5a79006c26 (patch)
treeff1c1d1391f2bdc28179a0a2a6a2379d9f083303 /layouts
parent69fff3b9dd4357140748adf52a76820a8a592fb8 (diff)
downloadgohugo-theme-ed-52ec5d04d585a4ac4b5a4215d3b0aa5a79006c26.tar.gz
Minor code cleanup
Diffstat (limited to 'layouts')
-rw-r--r--layouts/shortcodes/indent.html3
-rw-r--r--layouts/shortcodes/raw-html.html2
2 files changed, 2 insertions, 3 deletions
diff --git a/layouts/shortcodes/indent.html b/layouts/shortcodes/indent.html
index d22f84a..04f0b3f 100644
--- a/layouts/shortcodes/indent.html
+++ b/layouts/shortcodes/indent.html
@@ -1,2 +1 @@
-{{ $size := .Get 0 -}}
-<span class="indent-{{ $size }}"></span>
+<span class="indent-{{ .Get 0 }}"></span>
diff --git a/layouts/shortcodes/raw-html.html b/layouts/shortcodes/raw-html.html
index 98bce65..59448a1 100644
--- a/layouts/shortcodes/raw-html.html
+++ b/layouts/shortcodes/raw-html.html
@@ -1 +1 @@
-{{.Inner}}
+{{ .Inner }}