Fix bug in audio shortcode, misplaces figcaption.
This commit is contained in:
parent
46595e5ae9
commit
e9f8977861
1 changed files with 1 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
<figure {{ with .Get "class" }}class="{{ . }}"{{ end }}>
|
<figure {{ with .Get "class" }}class="{{ . }}"{{ end }}>
|
||||||
<audio controls preload="{{ .Get "preload" | default "metadata" }}">
|
<audio controls preload="{{ .Get "preload" | default "metadata" }}">
|
||||||
{{ with .Get "src" }}<source src="{{ . | relURL }}" type="audio/mpeg">{{ end }}
|
{{ with .Get "src" }}<source src="{{ . | relURL }}" type="audio/mpeg">{{ end }}
|
||||||
{{ with .Get "caption" }}<figcaption>{{ . }}</figcaption>{{ end }}
|
|
||||||
</audio>
|
</audio>
|
||||||
|
{{ with .Get "caption" }}<figcaption>{{ . }}</figcaption>{{ end }}
|
||||||
</figure>
|
</figure>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue