Skip to content

Instantly share code, notes, and snippets.

@tobybaier
tobybaier / Podlove Template
Created September 23, 2014 20:10
Podlove Template for Einschlafen Podcast. That "is_singular" actually does not work properly, but it does something. Not sure what, tho ;)
[podlove-episode field="summary"]
[podlove-web-player]
[podlove-episode-downloads]
[podlove-contributor-list donations="yes" roles="yes" flattr="yes"]
[is_singular]
<br/>
<img src="{{episode.imageUrlWithFallback}}" alt="{{episode.title}} - Episodenbild" height="300px"/>
<br/>
@tobybaier
tobybaier / mkindex.sh
Created May 20, 2013 20:35
when offering MP3s (own material, of course, not pirated stuff) in multiple directories, I use this bash script to show all MP3s of a directory (dir name as first and only parameter to the script call) as an HTML file with HTML5 audio player and download links. Also adds the page to a list of directories.
#!/bin/bash
cd $1
for i in `ls *.mp3`; do echo "<li><audio preload="none" controls="controls"><source src='$i' type='audio/mp3'/></audio> <a href='$i'>download $i</a></li>" >> index.html; done;
cd ..
echo "<li><a href='$1'>$1</a></li><br>" >> index.html