Conversation
Still messy + blog folder doesn't seem to be working, will continue to mess around with
Adding a post (markdown file) to the "blogs" folder and then running the build_blog_index script should allow blog posts to show up on the main page
May remove when messing around with style in the future
Collaborator
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.

Summary
Adds a complete blog system to the site: a searchable, filterable post list and individual post pages with syntax-highlighted code, an auto-generated index, and read-time / last-updated metadata derived at build time.
What's new
Blog list page (
blog_list.html)Individual post page (
blog.html)```python) and auto-detection across 30+ languagesBuild pipeline
scripts/build_blog_index.pywalksblogs/<YYYY-MM-DD>/*.md, parses frontmatter, and writesdata/blogs.jsonwith:title,author,preview(first 25 words, markdown stripped)date/date_display(parsed from folder name)last_updated(max mtime of any file in the folder)word_countandread_time_min(238 wpm, ceiling, minimum 1)N min readup to 60 min, thenH hr M min read(orH hr readon round hours)Tooling
scripts/gen_stress_post.pygenerates a long, structured lorem-ipsum post (mixed headings, paragraphs, lists, blockquotes, code blocks in Python/JS/Bash, inline code, links, bold/italic, horizontal rules) for visually stress-testing long-form renderingAuthoring a post
blogs/YYYY-MM-DD/(the date in the folder name drives the post's date tag and sort order)python scripts/build_blog_index.pyto regeneratedata/blogs.jsonSample images with fake blog posts (credit to Jane for first two):