Skip to content

hasadna/podcasts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hasadna Podcasts Static Site Generator

Static site generator for podcast episodes with Hebrew RTL support.

Project Structure

├── generate_site.py    # Main generator script
├── metadata/           # Episode metadata (JSON files)
├── templates/          # Template files
│   ├── index.html      # Main page template
│   ├── episode.html    # Single episode template
│   └── style.css       # Stylesheet
└── site/               # Output directory (auto-generated)
    ├── index.html
    └── style.css

Usage

python3 generate_site.py

The script will:

  1. Load episode metadata from metadata/*.json
  2. Generate the static site in the site/ directory

Serve the contents of the site/ directory using any static file server

python3 -m http.server --directory site 8000

Then open http://localhost:8000 in your browser.

Data Source

Episode metadata is read from metadata/*.json files. Each JSON file contains:

  • guid - Unique episode identifier
  • title - Episode title
  • description - Episode description (HTML)
  • pubDate - Publication date (RFC 2822 format)

Audio files are served directly from the S3 bucket at:

https://rgw.rke2.hasadna.org.il/podcasts/

Customization

You can edit the template files in templates/:

  • index.html - Main page structure (uses {{episode_count}} and {{episodes}})
  • episode.html - Episode card structure (uses {{title}}, {{date}}, {{description}}, {{audio_url}})
  • style.css - CSS styling

Requirements

  • Python 3.10+
  • No external dependencies

Deployment

Use Minio MC to upload the generated site/ directory to your S3-compatible storage.

mc cp -r site/ myminio/podcasts/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published