A personal blog website built with Hugo and modern automation features.
- Modern Design - Clean and responsive layout
- Fast Loading - Hugo static site generator
- SEO Optimized - Built-in search engine optimization
- Markdown Support - Write content using Markdown
- Multilingual - Support for English and Chinese content
- Notion Sync - Daily automatic content sync from Notion database
- Google Translation - Batch translation from Chinese to English
- Auto Deploy - Automatic build and deployment to GitHub Pages
- Smart Caching - Efficient processing with change detection
# Install Hugo
brew install hugo # macOS
# or use your package manager
# Clone and run
git clone <repo-url>
cd yosgi-hugo-blog
hugo server -DVisit http://localhost:1313 to preview.
hugo # Output in public/├── content/en/ # English content
├── content/zh/ # Chinese content
├── static/ # Static resources
├── themes/ # Theme files
├── notion-sync/ # Notion sync tool
├── tools/ # Translation tools
└── hugo.toml # Configuration
Set GitHub Secrets:
NOTION_API_KEY- Your Notion API keyNOTION_DATABASE_ID- Your database ID
Automatic sync runs daily or manually via GitHub Actions.
# Translate content
python3 tools/translate_with_google.py content/en/post/file.mdRequires GOOGLE_API_KEY in .env file.
# Create new post
hugo new content/en/post/title.md
hugo new content/zh/post/title.mdMain settings in hugo.toml:
baseURL- Website domaintitle- Site titleparams- Theme parameters
Automatic deployment via GitHub Actions to GitHub Pages when content changes.
Manual deployment options:
- Netlify: Connect repo, build command
hugo, publish dirpublic - Vercel: Import repo, framework preset Hugo
MIT License