1 KiB
1 KiB
name: git-hugo-workflow description: Handle Git operations for Hugo sites: commits, branches, PRs, and deploy prep in static site projects. license: MIT compatibility: opencode metadata: audience: maintainers workflow: git-hugo-deploy tools: git, hugo
What I Do
I streamline Git for Hugo websites:
- Initialize/track repos, ignoring generated files like
/public. - Branch for features (e.g., new content or theme changes).
- Commit best practices: Semantic messages (e.g., "feat: add blog post on Hugo tips").
- Prepare PRs for collaboration or deploys (e.g., to GitHub Pages/Netlify).
- Handle submodules for themes and suggest CI/CD (e.g., GitHub Actions for auto-builds).
When to Use Me
Invoke for version control in Hugo projects: after content edits, before builds/deploys, or during team contributions. Ensure .gitignore excludes /public, /resources, hugo.*.themes.
Instructions for Agent
- Check repo status (
git status); advise on uncommitted changes. - Standard
.gitignorefor Hugo: Suggest adding: