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
|
- type: audio
|
||||||
title: Title of song
|
title: Title of song
|
||||||
image: song.ogg
|
image: song.ogg
|
||||||
|
color: "#000" (optional)
|
||||||
|
|
||||||
|
|
||||||
Author
|
Author
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
{% set format = extension %}
|
{% set format = extension %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ audio.copy() }}
|
{{ 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>
|
<h2>{% if section.title %}{{ section.title }}{% else %}{{ audio }}{% endif %}</h2>
|
||||||
<audio controls preload=none>
|
<audio controls preload=none>
|
||||||
<source src="{{ audio }}.{{ extension }}" type="audio/{{ format }}">
|
<source src="{{ audio }}.{{ extension }}" type="audio/{{ format }}">
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
{% set format = extension %}
|
{% set format = extension %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ audio.copy() }}
|
{{ 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>
|
<h2>{% if section.title %}{{ section.title }}{% else %}{{ audio }}{% endif %}</h2>
|
||||||
<audio controls preload=none>
|
<audio controls preload=none>
|
||||||
<source src="{{ audio }}.{{ extension }}" type="audio/{{ format }}">
|
<source src="{{ audio }}.{{ extension }}" type="audio/{{ format }}">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user