add background color for audio player
This commit is contained in:
parent
34db72cffa
commit
59f96c0b24
@ -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
|
||||
|
@ -6,7 +6,7 @@
|
||||
{% set format = extension %}
|
||||
{% endif %}
|
||||
{{ audio.copy() }}
|
||||
<div class="audio-player">
|
||||
<div class="audio-player" {% if section.color %} style="background: {{ section.color }};"{% endif %}>
|
||||
<h2>{% if section.title %}{{ section.title }}{% else %}{{ audio }}{% endif %}</h2>
|
||||
<audio controls preload=none>
|
||||
<source src="{{ audio }}.{{ extension }}" type="audio/{{ format }}">
|
||||
|
@ -6,7 +6,7 @@
|
||||
{% set format = extension %}
|
||||
{% endif %}
|
||||
{{ audio.copy() }}
|
||||
<div class="audio-player">
|
||||
<div class="audio-player" {% if section.color %} style="background: {{ section.color }};"{% endif %}>
|
||||
<h2>{% if section.title %}{{ section.title }}{% else %}{{ audio }}{% endif %}</h2>
|
||||
<audio controls preload=none>
|
||||
<source src="{{ audio }}.{{ extension }}" type="audio/{{ format }}">
|
||||
|
Loading…
x
Reference in New Issue
Block a user