added audio shortcode
This commit is contained in:
parent
ebdf820d95
commit
4c2adcd0fe
7
layouts/shortcodes/audio.html
Normal file
7
layouts/shortcodes/audio.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<figure {{ with .Get "class" }}class="{{ . }}"{{ end }}>
|
||||||
|
<audio controls preload="{{ .Get "preload" | default "metadata" }}">
|
||||||
|
{{ with .Get "src" }}<source src="{{ . }}" type="audio/mpeg">{{ end }}
|
||||||
|
</audio>
|
||||||
|
{{ with .Get "caption" }}<figcaption><h4>{{ . }}</h4></figcaption>{{ end }}
|
||||||
|
|
||||||
|
</figure>
|
|
@ -434,6 +434,12 @@ figure img {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
figure.audiofig audio {
|
||||||
|
width: 90%;
|
||||||
|
align: center;
|
||||||
|
}
|
||||||
|
|
||||||
.center {
|
.center {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue