diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-02-25 21:16:49 +0100 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2020-02-25 21:16:49 +0100 |
commit | 08519158f49bb97c6f758cf8886e25b7f9aec433 (patch) | |
tree | 1d48eed12b0ff69a3c95b37332080e0f601c5338 /layouts/shortcodes/tabs.html | |
parent | 5d7f257e303d581a4b75f3feb12940a172ec89ed (diff) |
#153, Remove extra spaces in generated tabs html
Diffstat (limited to 'layouts/shortcodes/tabs.html')
-rw-r--r-- | layouts/shortcodes/tabs.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/shortcodes/tabs.html b/layouts/shortcodes/tabs.html index 9431af5..7aace73 100644 --- a/layouts/shortcodes/tabs.html +++ b/layouts/shortcodes/tabs.html @@ -3,7 +3,7 @@ {{ $group := printf "tabs-%s" $id }} <div class="book-tabs"> -{{ range $index, $tab := .Scratch.Get $group }} +{{- range $index, $tab := .Scratch.Get $group -}} <input type="radio" class="hidden" name="{{ $group }}" id="{{ printf "%s-%d" $group $index }}" {{ if not $index }}checked="checked"{{ end }} /> <label for="{{ printf "%s-%d" $group $index }}"> {{ $tab.Name }} @@ -11,5 +11,5 @@ <div class="book-tabs-content markdown-inner"> {{ .Content | markdownify }} </div> -{{ end }} +{{- end -}} </div> |