add docs
This commit is contained in:
parent
2f657c92c9
commit
18ed2fbf3a
@ -132,6 +132,19 @@ How to use it::
|
|||||||
- type: panorama
|
- type: panorama
|
||||||
image: 7.jpg
|
image: 7.jpg
|
||||||
|
|
||||||
|
Audio
|
||||||
|
_____
|
||||||
|
|
||||||
|
This section is for add audio file with HTML5 player.
|
||||||
|
|
||||||
|
::
|
||||||
|
- type: audio
|
||||||
|
image:
|
||||||
|
name: song.ogg
|
||||||
|
type: audio
|
||||||
|
title: Title of song
|
||||||
|
|
||||||
|
|
||||||
Author
|
Author
|
||||||
______
|
______
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{% if section.image.type == "audio" %}
|
{% if section.image.type == "audio" %}
|
||||||
{% set audio = Audio(section.image) %}
|
{% set audio = Audio(section.image) %}
|
||||||
{% set caption = section.text %}
|
{% set caption = section.title %}
|
||||||
{{ audio.copy() }}
|
{{ audio.copy() }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="audio-player">
|
<div class="audio-player">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user