From 59f96c0b240ffe1e9466fe9f8f22f17db2a35d5e Mon Sep 17 00:00:00 2001 From: Adrien Beudin Date: Sun, 4 Jun 2017 16:28:09 +0200 Subject: [PATCH] add background color for audio player --- docs/sections.rst | 1 + prosopopee/themes/exposure/templates/sections/audio.html | 2 +- prosopopee/themes/material/templates/sections/audio.html | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/sections.rst b/docs/sections.rst index fe718cf..8ca16e5 100644 --- a/docs/sections.rst +++ b/docs/sections.rst @@ -151,6 +151,7 @@ This section is for add audio file with HTML5 player.:: - type: audio title: Title of song image: song.ogg + color: "#000" (optional) Author diff --git a/prosopopee/themes/exposure/templates/sections/audio.html b/prosopopee/themes/exposure/templates/sections/audio.html index cf99913..7cb88b2 100644 --- a/prosopopee/themes/exposure/templates/sections/audio.html +++ b/prosopopee/themes/exposure/templates/sections/audio.html @@ -6,7 +6,7 @@ {% set format = extension %} {% endif %} {{ audio.copy() }} -
+

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