diff options
author | Zachary Betz <zwbetz@gmail.com> | 2018-12-31 22:30:39 +0300 |
---|---|---|
committer | Zachary Betz <zwbetz@gmail.com> | 2018-12-31 22:30:39 +0300 |
commit | 0f1ef8d77257475e9e1829d1fedbff3985e9da26 (patch) | |
tree | 90771975225efbd05258b9fdbdc4fca3afbf7314 | |
parent | ff9d0234f0a384c2a754f441ee6092cbb06a0f18 (diff) |
Fix duplicate blockquote paragraph tags
-rw-r--r-- | layouts/shortcodes/bootstrap-blockquote.html | 5 |
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 }} |