Repository navigation
Blog infrastructure for visualci.com/blog (no posts yet) - #101
Merged
Merged
Conversation
7 tasks
…, author; optional image and draft) prerendered to /blog/<slug>/ in the docs' design with a Markdown copy and its folder's files, /blog/ listing the posts, an Atom feed at /blog/feed.xml, per-post link-preview images, llms.txt and the sitemap. With no published posts nothing is built, so the site never links an empty blog
…s reads content/blog at build time; drafts count with VISUALCI_BLOG_DRAFTS=1), and a published post with a [TODO placeholder fails the build
ndbroadbent
force-pushed
the
marketing-blog
branch
from
December 3, 2026 01:12
815ab02 to
5ce62d6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The blog for visualci.com/blog, modelled on Talira's: a folder of Markdown posts with front matter, prerendered into the static site with the docs' design. No posts yet, so merging this changes nothing on the site. /blog/ and its links appear with the first post (draft PR to follow).
How a post works
server/frontend/content/blog/<slug>.mdis the post at/blog/<slug>/, with a Markdown copy at/blog/<slug>.mdfor agents.title,description,date(YYYY-MM-DD) andauthor.image, a PNG or JPG in the post's folder, used as its link-preview card (og:image and twitter:image).draft: true, which keeps a post out of the build unlessVISUALCI_BLOG_DRAFTS=1, for a dev preview.content/blog/<slug>/are served next to the post, sojust works. Relative links become absolute in the Markdown copy and the feed./compare/and the legal pages, with a date and author line under the title./blog/lists the posts, newest first./blog/feed.xmlis an Atom feed with each post's full HTML, linked from every blog page's<head>.vite.config.tsreadscontent/blogat build time (scripts/has-blog.mjs), counting drafts withVISUALCI_BLOG_DRAFTS=1.[TODOplaceholder fails the build, so a post waiting on a fact stays a draft.scripts/blog.mjsfails the build on missing front matter, a bad date, a reserved slug, or a missingimagefile.site.mjschecks that every post has its Markdown copy, its llms.txt link and a feed entry, and that/blog/is never built empty.Tested on docspring-dev
/blog/) andsite.mjspasses.Styles:
.blog-meta,.blog-listand.blog-item, using the existing tokens (text-sm, color-muted, color-rule, space-*), plusmax-width: 100%for images in docs content.