diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-11 01:03:10 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-05-11 01:03:10 +0200 |
| commit | 52ec5d04d585a4ac4b5a4215d3b0aa5a79006c26 (patch) | |
| tree | ff1c1d1391f2bdc28179a0a2a6a2379d9f083303 | |
| parent | 69fff3b9dd4357140748adf52a76820a8a592fb8 (diff) | |
| download | gohugo-theme-ed-52ec5d04d585a4ac4b5a4215d3b0aa5a79006c26.tar.gz | |
Minor code cleanup
| -rw-r--r-- | layouts/shortcodes/indent.html | 3 | ||||
| -rw-r--r-- | layouts/shortcodes/raw-html.html | 2 |
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 }} |
