Source code for ogu.nz, a static site generator built with Python, HTML, SCSS, and JavaScript. Infrastructure managed with Terraform.
- Static site generation with Markdown support.
- Article and tag management.
- Customizable templates and styles.
- SEO-friendly with sitemaps and RSS feeds.
- Clone the repository:
git clone https://github.com/tetsuo/website.git
- Install dependencies:
pip install -r requirements.txt npm install
- Generate favicons:
convert -size 2049x2049 "xc:rgba(0,0,0,0)" -set colorspace RGB \ -fill '#fff' -stroke '#0000ff' -strokewidth 300 -draw 'circle 1024,1024 1024,153' \ -fill 'black' -stroke '#1ba9e4' -strokewidth 290 -draw 'circle 1024,1024 760,760' \ -alpha set -background none \ -wave 100x1900 \ -colorspace sRGB \ -distort SRT 8 \ tmp/circle_sRGB.png && \ ./generate-favicons.js tmp/circle_sRGB.png
- Build pages:
python generate.py
- Build styles:
npm run sass
- Upload to S3 using the provided sync script:
PUBLIC_S3_BUCKET_NAME="somebucket" \ DOMAIN_NAME="example.com" \ YES=1 \ ./sync-public-bucket .
MIT License. See LICENSE for details.