Blog JSON system #1

Merged
dangrubbb merged 5 commits from OpenClaw into main 2026-02-28 21:57:54 +00:00
Owner

Blog posts are now saved in a JSON, and are displayed on the home page as well as the blog page.

Blog posts are now saved in a JSON, and are displayed on the home page as well as the blog page.
dangrubbb added 5 commits 2026-02-28 21:57:31 +00:00
- Create blog/posts.json for managing blog post metadata
- Add blog preview box (max 1/3 screen width) to homepage
- Fetch latest post dynamically with image and excerpt
- Updates automatically when new posts added to JSON
- Styled to fit no-scroll homepage layout
- Link to full blog page for each post
- Blog posts now load from blog/posts.json
- Create blog/script.js to dynamically render posts
- Each post displays: title, date, content, image
- Support hash-based navigation to specific posts
- Updated blog/index.html to load posts dynamically
- Added styling for blog posts and containers
- First post is 'Status' matching the original content
- Use absolute path for image (/blog/src/img/...) so homepage preview loads correctly
- Center blog post content with max-width for better readability
- Use flexbox on blog-post container to center all children
- Set max-width on post container to constrain width
- Ensure content paragraph takes full width and centers text
dangrubbb merged commit f824e30dc0 into main 2026-02-28 21:57:54 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dangrubbb/dangrubb.net#1
No description provided.