diff --git a/prosopopee/themes/light/templates/sections/audio.html b/prosopopee/themes/light/templates/sections/audio.html index 5355fbe..d13b31b 100644 --- a/prosopopee/themes/light/templates/sections/audio.html +++ b/prosopopee/themes/light/templates/sections/audio.html @@ -1,4 +1,5 @@ {% set extension = settings.ffmpeg_audio.extension %} +{% set audio = Audio(section.image) %} {% if extension == "mp3" %} {% set format = "mpeg" %} {% else %} @@ -8,10 +9,8 @@ {% set pathstatic = ".." %} {% else %} {% set pathstatic = "." %} -{% set audio = Audio(section.image) %} -{{ audio.copy() }} {% endif %} -{% set audio = Audio(section.image) %} +{{ audio.copy() }}

{% if section.title %}{{ section.title }}{% else %}{{ audio }}{% endif %}