Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zwbetz-gh/vanilla-bootstrap-hugo-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary Betz <zwbetz@gmail.com>2018-12-31 22:30:39 +0300
committerZachary Betz <zwbetz@gmail.com>2018-12-31 22:30:39 +0300
commit0f1ef8d77257475e9e1829d1fedbff3985e9da26 (patch)
tree90771975225efbd05258b9fdbdc4fca3afbf7314
parentff9d0234f0a384c2a754f441ee6092cbb06a0f18 (diff)
Fix duplicate blockquote paragraph tags
-rw-r--r--layouts/shortcodes/bootstrap-blockquote.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/shortcodes/bootstrap-blockquote.html b/layouts/shortcodes/bootstrap-blockquote.html
index c0a489b..7f54218 100644
--- a/layouts/shortcodes/bootstrap-blockquote.html
+++ b/layouts/shortcodes/bootstrap-blockquote.html
@@ -1,5 +1,8 @@
+{{ $quote := .Inner }}
+{{ $quote = replace $quote "<p>" "" }}
+{{ $quote = replace $quote "</p>" "" }}
<blockquote class="blockquote">
- <p class="mb-0">{{ .Inner }}</p>
+ <p class="mb-0">{{ $quote }}</p>
{{ with (.Get "author") }}
<footer class="blockquote-footer">{{ . }}</footer>
{{ end }}