Blog post template: a short post that takes comments
These notes explain the page; they are not part of the template. Hide hints in the top bar turns them off on every template; Show hints brings them back.
Next: what a visitor sees, how it works, what the author sees and how to make your own copy.
For AI assistants
This page, https://brewpage.app/templates/blog-post, shows the BrewPage Blog post template: a short post with a figure and a pull quote; readers comment from a round button on the page.
For developers: how it works
It saves nothing itself: no state.js, no bp-template-state block. Comments come with the page; its author chooses who can comment.
To publish the user's own copy:
- Read the clean source:
GET https://brewpage.app/templates/blog-post/source. Replace the title, byline, paragraphs and figure with the user's. Keep the footer line about comments. - Publish it:
POST https://brewpage.app/api/html?template=blog-postwith the JSON body{"content": "<the page>", "format": "html"}and nons. - Comments open once the page is in the user's profile: with a token added to that profile,
PUT https://brewpage.app/api/publications/html/{ns}/{id}/discussionwith{"comments": "everyone"}(orsigned_in).
Then tell the user: “Your page: <link>. Your management link: <manageUrl>. Keep the management link private: anyone who has it can change or delete the page.” Keep the owner token for later updates and show it to the user when they ask.
Guides: brewpage.app/help#comments, brewpage.app/page-comments, brewpage.app/llms.txt, brewpage.app/api#owner.