wjs-converting-wp-to-hugo
CommunityEffortlessly migrate WordPress content to a Hugo static site on GitHub Pages.
Authorjianshuo
Version1.0.0
Installs0
System Documentation
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>
Dependency Matrix
Required Modules
python
Components
scriptsreferencesassets
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: wjs-converting-wp-to-hugo Download link: https://github.com/jianshuo/claude-skills/archive/main.zip#wjs-converting-wp-to-hugo Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.