Add blog via Astro content collections #19
Reference in New Issue
Block a user
Delete Branch "feature/blog"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Introduce blog support: content collection schema, listing and post
routes, and a sample Markdown post. Update docs and TODO; add blog
assets dir and adjust color variables in docs. Also set
absolute_redirect off in nginx.conf for container routing.
Description
Changes
Related Issues
Checklist
make lint)make test)📋 Pull Request Summary
Adds a static blog powered by Astro Content Collections, including a content schema, a dynamic post page, and a first Markdown post. Also updates documentation and configuration (colors, instructions, TODOs) and makes small deployment/nginx adjustments.
Type: 🔀 Mixed
Changes
✅ Added:
📝 Modified:
absolute_redirect off;Files Affected
src/content/config.ts- New content collection definition for 'blog' using zod schema: title, date (coerced), description, optional draft flag.src/pages/blog/[...slug].astro- New dynamic blog post page: builds static paths for non-draft posts, renders Markdown content via post.render() and Content component, includes prose styles and a subtle animated grid background.src/content/blog/love-without-access.md- New Markdown blog post (full content, frontmatter: title, date, description).DEVELOPMENT.md- Updated developer docs and project tree to include the blog structure, new color palette (Catppuccin Mocha variables), detailed blog authoring and image placement instructions, and adjusted list of site sections.README.md- Docs update: palette renamed to Catppuccin Mocha, added blog feature notes, changed docker run mapping to publish container port 80 to host 3000.TODO.md- Task list updated to mark the blog/collections as implemented and to add/adjust related checklist items (RSS noted as still open).nginx.conf- Small nginx config change: addsabsolute_redirect off;(affects redirect behavior when serving static site).Impact
🟡 Scope: Medium
Introduces a new blog feature with content schema and rendering pipeline which affects build-time content collection behavior and site routes. Documentation and developer guides were updated accordingly. Visual/theme variables changed (may alter site appearance), and the Docker run instructions / nginx setting modify deployment behavior (note docker port mapping changed and absolute_redirect added). Reviewers should verify build, routing (/blog and individual posts), CSS variable usage, and deployment port assumptions.
AI Code Review
AI review encountered an error: Failed to parse JSON response: '{\n "summary": "Adds an Astro content-driven blog (content collection, a post, and dynamic post page) plus documentation updates and minor nginx/docker doc changes. The implementation mostly follows Astro patterns, but there are some correctness and operational issues (notably the catch-all route static paths), a few deployment/documentation mismatches, missing tests, and some small performance/security considerations for rendering Markdown and a background animation.",\n "overall_severity": "HI...'
Summary
Overall Severity:
UNKNOWNAI Recommendation: Changes Requested