What problem does it solve?
This Skill simplifies the process of migrating a WordPress site to a static site using Hugo and GitHub Pages, ensuring URL preservation and local image management.
Core Features & Use Cases
- WordPress to Hugo Conversion: Convert WordPress content to Hugo-compatible Markdown files.
- URL Preservation: Keeps the original site URLs, preserving SEO and links.
- Local Image Management: Localizes images from the WordPress uploads folder for use in the static site.
- GitHub Actions Deployment: Automates the deployment process using GitHub Actions.
Quick Start
To convert your WordPress site to a Hugo static site and deploy it to GitHub Pages, run the following commands:
cp -r wjs-converting-wp-to-hugo ~/.claude/skills/
python3 scripts/wxr_to_hugo.py <path_to_wxr_file>.xml
hugo --gc --minify
gh repo create <site> --public --source=. --remote=origin
git push -u origin main
gh api -X POST repos/<owner>/<site>/pages -f build_type=workflow
gh workflow run "Deploy Hugo site to Pages" --repo <owner>/<site>