Some bands wants to share their music and don't want to be on big platforms. This is a bash script to generate a single static mobile friendly html5 page from media files presents in /audio (and albums subdirs).
Examples :
- each track is playable and downloadable
- when a tracks ends, next tracks automatically plays
- playing a track pauses all others
- random playing available
- if hosted on github, link to master.zip to dl all tracks
- manifest and SW to be installed as a PWA on mobile
- opengraph tags for social sharing
- displays a CC license
- can read and display id3 tags and pics with https://github.com/leetreveil/musicmetadata
- can add social buttons without tracking with https://sharingbuttons.io/
- Fork/clone this project
- Setup your audio dir :
- 1 subdir per album
- if you use id3, be sure all files are well tagged
- name scheme for songs: 01-trackname.mp3
- If you don't want share buttons, remove the line
SHAREBTNS=YES
at top ofgenpage.sh
- Run the
./genpage
script - Customize the generate
index.html
page :- Band name, description, contact, links (share btns, mail contact, download all)
- Icons (PWA manifest, favicon), background picture
- Style (colors, font)
- Change the license
- Put it online
Do whatever you want