mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 09:43:06 +00:00
expand: fix html encoding of finishing content tag #557
This commit is contained in:
parent
be71466468
commit
7552bcc936
2 changed files with 2 additions and 3 deletions
|
@ -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 }}
|
|
@ -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 }}
|
Loading…
Reference in a new issue