This commit is contained in:
Adrien Beudin 2017-03-03 17:21:00 +01:00
parent 2f657c92c9
commit 18ed2fbf3a
2 changed files with 14 additions and 1 deletions

View File

@ -132,6 +132,19 @@ How to use it::
- type: panorama
image: 7.jpg
Audio
_____
This section is for add audio file with HTML5 player.
::
- type: audio
image:
name: song.ogg
type: audio
title: Title of song
Author
______

View File

@ -1,6 +1,6 @@
{% if section.image.type == "audio" %}
{% set audio = Audio(section.image) %}
{% set caption = section.text %}
{% set caption = section.title %}
{{ audio.copy() }}
{% endif %}
<div class="audio-player">