Skip to content

Commit

Permalink
expand: fix html encoding of finishing content tag #557
Browse files Browse the repository at this point in the history
  • Loading branch information
McShelby committed Jun 3, 2023
1 parent be71466 commit 7552bcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions layouts/partials/shortcodes/expand.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
{{ $title | markdownify }}
</label>
<div id="expandcontent-{{ $id }}" class="expand-content">
{{ $content | safeHTML }}
</div>
{{ $content | safeHTML }}</div><!-- no line break allowed here because of awkward behavior of Hugo 110 or this theme when tag shortcode is called standalone outside of tags shortcode ? -->
</div>
{{- end }}
2 changes: 1 addition & 1 deletion layouts/partials/shortcodes/notice.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
<div class="box notices cstyle {{ $style }}"{{ if $color }} style="--VARIABLE-BOX-color: {{ $color }};"{{ end }}>
<div class="box-label">{{ if $icon }}<i class="{{ $icon }}"></i>{{ end }}{{ if and $icon $title }} {{ end }}{{ $title | markdownify }}</div>
<div class="box-content">
{{ $content | safeHTML }} </div>
{{ $content | safeHTML }}</div><!-- no line break allowed here because of awkward behavior of Hugo 110 or this theme when tag shortcode is called standalone outside of tags shortcode ? -->
</div>
{{- end }}

0 comments on commit 7552bcc

Please sign in to comment.