From 590582aea2c64c2013b00269c18c5f4d5d6eecf9 Mon Sep 17 00:00:00 2001 From: Adrien Beudin Date: Fri, 29 Sep 2017 04:50:37 +0200 Subject: [PATCH] [fix] audio section in light mode --- prosopopee/themes/light/templates/sections/audio.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 %}