feat: load the sidebar data and titles/excerpts from the blog post markdown document and its frontmatter - #2981
Merged
Merged
Conversation
…rkdown document and its frontmatter
pd93
marked this pull request as ready for review
August 15, 2026 16:53
pd93
requested review from
andreynering and
vmaerten
and removed request for
vmaerten
August 15, 2026 16:53
vmaerten
approved these changes
Aug 15, 2026
vmaerten
left a comment
Member
There was a problem hiding this comment.
Looks good!
Way easier now 🚀
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.
Description
This PR updates the way blog posts are loaded to the Task website. Currently, each blog post has to be added as a markdown document, then added to the sidebar and blog index independently. This PR changes this so that only the markdown document is required.
We use gray-matter) to extract frontmatter from the markdown document and load it dynamically into the sidebar. A function was also added to render and cut an excerpt of text from the markdown document to use as a preview on the blog index page. This works by extracting the text up to the
<!-- more -->comment.I'm going to leave this as a draft until after #2979 is merged since there are likely to be conflicts.
AI Disclosure
Assisted by Claude Code to recommend the best approach to loading the frontmatter (via gray-matter) and to write the
buildBlogSidebarfunction andblog.data.tsfile.Checklist