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