Thanks for your interest in contributing. This is a personal blog, so contributions are most welcome in the form of bug reports, theme improvements, and script enhancements. Blog content (posts, images) is not open for external contributions.
- Bug fixes in the Hugo theme (
themes/coreydaley-dev/) - Improvements to shortcodes (
layouts/shortcodes/) - Script improvements (
scripts/) - GitHub Actions workflow improvements
- Documentation fixes
- Hugo Extended v0.155.1 — installation guide
- Node.js + npm
- Python 3
- pre-commit — installation guide
# 1. Fork and clone
git clone https://github.com/YOUR_USERNAME/coreydaley.github.io.git
cd coreydaley.github.io
# 2. Install Node dependencies
npm install
# 3. Install pre-commit hooks
pre-commit install
# 4. (Optional) Set up Python venv for image scripts
python3 -m venv .venv
.venv/bin/pip install anthropic openai requests
# 5. Start dev server
hugo server -DThe site runs at http://localhost:1313. The -D flag includes draft posts.
Create a branch from main with a descriptive name:
git checkout -b fix/shortcode-image-resolution
git checkout -b feat/rss-improvementsThis project uses Conventional Commits:
<type>(<scope>): <short summary>
Types: feat, fix, docs, chore, refactor, test, style, ci
Examples:
fix(shortcodes): resolve image path for leaf bundle resourcesfeat(theme): add dark mode toggledocs(readme): fix outdated hugo new command
Always include a Co-authored-by trailer if AI-assisted:
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
When creating a file, add a header in the language's native comment style:
{{/* Created by: Your Name | Date: 2026-03-07T00:00:00-05:00 */}}
When modifying an existing file, preserve the Created by line and append:
{{/* Created by: Original Author | Date: ... | Last Modified By: Your Name | Last Modified: 2026-03-07T00:00:00-05:00 */}}
Hugo layout files use {{/* ... */}}. CSS/JS use /* ... */. TOML/YAML use # .... Never add comment blocks to Markdown files.
- Test changes with
hugo --minify— the build must pass cleanly - Use Hugo page resources (bundle-relative) for image resolution, not absolute static paths
- Keep templates readable; avoid deeply nested conditionals
- Scripts must work when invoked from the repo root
generate-post-image.pyself-re-execs with.venv/bin/python3— preserve this pattern- Do not hardcode absolute paths
Posts are Hugo leaf bundles. Images live alongside index.md in the bundle directory:
content/posts/YYYY/MM/slug/
├── index.md
├── hero.webp
└── thumbs/
└── hero.webp
Run ./scripts/optimize-images.sh after adding any PNG/JPG. Do not place post images in static/images/posts/.
- Push your branch and open a PR against
main - Fill in the PR template
- Ensure
hugo --minifypasses and the pre-commit hook passes - A maintainer will review within a few days
By participating you agree to the Code of Conduct.