Skip to content

Hogwarter/demopagenerator

 
 

Repository files navigation

Demo Page Generator

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 :

Features

  • 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/

How to use

  1. Fork/clone this project
  2. 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
  3. If you don't want share buttons, remove the line SHAREBTNS=YES at top of genpage.sh
  4. Run the ./genpage script
  5. 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
  6. Put it online

License

Do whatever you want

About

bash script to generate html page from an audio directory

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 88.4%
  • CSS 6.6%
  • JavaScript 2.7%
  • Shell 2.3%