Skip to content

Commit

Permalink
Fix: shortcode 'lead' produces invalid HTML (#905)
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Feb 24, 2022
1 parent f03cba0 commit 1d126ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/shortcodes/blocks/lead.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<a id="td-block-{{ .Ordinal }}" class="td-offset-anchor"></a>
<section class="row td-box td-box--{{ $col_id }} position-relative td-box--gradient td-box--height-{{ $height }}">
<div class="container text-center td-arrow-down">
<span class="h4 mb-0">
<div class="h4 mb-0">
{{ if eq .Page.File.Ext "md" }}
{{ .Inner | markdownify }}
{{ else }}
{{ .Inner | htmlUnescape | safeHTML }}
{{ end }}
</span>
</div>
</div>
</section>

0 comments on commit 1d126ab

Please sign in to comment.