expand: fix html encoding of finishing content tag #557

This commit is contained in:
Sören Weber 2023-06-03 11:11:41 +02:00
parent be71466468
commit 7552bcc936
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
2 changed files with 2 additions and 3 deletions

View file

@ -16,7 +16,6 @@
{{ $title | markdownify }} {{ $title | markdownify }}
</label> </label>
<div id="expandcontent-{{ $id }}" class="expand-content"> <div id="expandcontent-{{ $id }}" class="expand-content">
{{ $content | safeHTML }} {{ $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>
</div> </div>
{{- end }} {{- end }}

View file

@ -19,6 +19,6 @@
<div class="box notices cstyle {{ $style }}"{{ if $color }} style="--VARIABLE-BOX-color: {{ $color }};"{{ end }}> <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-label">{{ if $icon }}<i class="{{ $icon }}"></i>{{ end }}{{ if and $icon $title }} {{ end }}{{ $title | markdownify }}</div>
<div class="box-content"> <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> </div>
{{- end }} {{- end }}