-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(audio): Correct coloring. Add instructions
- Loading branch information
Showing
6 changed files
with
34 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
{% for audio in include.audio %} | ||
<div style='position: relative' class='essential_audio' data-url='{{ audio }}'></div> | ||
|
||
{% assign _size = include.audio | size %} | ||
{% if forloop.index != _size %}<hr />{% endif %} | ||
{% endfor %} | ||
<div style="padding: 50px 0"> | ||
<div class='essential_audio' data-url='{{ include.audio }}'></div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% for audio in include.audio %} | ||
<div class='essential_audio' data-url='{{ audio }}'></div> | ||
|
||
{%- assign _size = include.audio | size %} | ||
{% if forloop.index != _size %}<br /><br />{% endif -%} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
--- | ||
--- | ||
|
||
<hr class='section' /> | ||
|
||
## Play Audio | ||
|
||
Include an `audio` field in your `_data/sessions.yml` to add audio to top of content: | ||
|
||
<pre> | ||
... | ||
audio: | ||
- /assets/music-1.mp3 | ||
- /assets/speech-2.ogg | ||
</pre> | ||
|
||
To add audio file on-demand use: | ||
|
||
<pre> | ||
{% include session/audio.html audio='/assets/music.mp3' %} | ||
</pre> | ||
|
||
<hr class='logo' /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters