Add a Journal (blog) to the restaurant demo - #19
Merged
Merged
Conversation
Adds the official Blog plugin's `blog` collection to the demo as "The Copper Table Journal", so the restaurant demo also showcases the blog plugin: - seed-demo.php seeds a `blog` collection (summary/body/cover/tags/canonical_url) and three restaurant journal posts (spring menu, sourcing, online ordering). - theme: collection-blog.php (the Journal index) and entry-blog.php (a post, with a small escape-first Markdown subset rendered in-theme since the image ships no Markdown plugin); a Journal nav link; journal + prose styles matching the dark/gold/serif theme. - layout.php defers its own canonical/OG on /blog and /tag pages, where the Blog plugin contributes the full head, so those tags aren't emitted twice. The Blog plugin itself is added to the site image separately (deploy). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Showcases the official Blog plugin inside the restaurant demo as The Copper Table Journal.
blogcollection + three restaurant journal posts (spring menu, sourcing, online ordering).collection-blog.php(Journal index) +entry-blog.php(post detail, with a small escape-first Markdown subset rendered in-theme — the image ships no Markdown plugin), a Journal nav link, and journal/prose styles matching the dark/gold/serif theme.layout.phpdefers its own canonical/OG on/blogand/tagpages, where the Blog plugin owns the full<head>, so those tags aren't emitted twice.The Blog plugin is added to the site image and the golden snapshot regenerated as part of deploy.
🤖 Generated with Claude Code