diff --git a/docs/sections.rst b/docs/sections.rst index d3c4384..d61ffc8 100644 --- a/docs/sections.rst +++ b/docs/sections.rst @@ -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 ______ diff --git a/prosopopee/themes/exposure/templates/sections/audio.html b/prosopopee/themes/exposure/templates/sections/audio.html index 2c28361..301448b 100644 --- a/prosopopee/themes/exposure/templates/sections/audio.html +++ b/prosopopee/themes/exposure/templates/sections/audio.html @@ -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 %}