From 3f721512ca21b6699b2b17785c801da6c8059b3b Mon Sep 17 00:00:00 2001 From: gtoast <280999+gtoast@users.noreply.github.com> Date: Tue, 27 Jan 2026 16:16:40 -0800 Subject: [PATCH] fixed the example new-posts.md Running the new-posts.md example as written results in an error. Creating the example md template results in a selmer.filters error. Removed escaped characters and made sure there's two arguments to replace. Running the new post example no longer errors. --- CHANGELOG.md | 1 + README.md | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16ec01b..51343c4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ Instances of quickblog can be seen [here](https://github.com/borkdude/quickblog? ## Unreleased +- Fixed new-post.md example in README.md - Upgrade babashka/http-server to 0.1.14 - Add support for a blog contained within another website; see [Serving an alternate content root](https://github.com/borkdude/quickblog/README.md#serving-an-alternate-content-root) in README. ([@jmglov](https://github.com/jmglov)) - Fix `:blog-image-alt` option being ignored when using CLI (`bb quickblog render`) diff --git a/README.md b/README.md index cc23d27..da6946f 100644 --- a/README.md +++ b/README.md @@ -284,11 +284,11 @@ this: ``` markdown Title: {{title}} Date: {{date}} -Tags: {{tags|join:\",\"}} -Image: {% if image %}{{image}}{% else %}{{assets-dir}}/{{file|replace:.md:}}-preview.png{% endif %} +Tags: {{tags|join:","}} +Image: {% if image %}{{image}}{% else %}{{assets-dir}}/{{file|replace:".md":""}}-preview.png{% endif %} Image-Alt: {{image-alt|default:FIXME}} Discuss: {{discuss|default:FIXME}} -{% if preview %}Preview: true\n{% endif %} +{% if preview %}Preview: true{% endif %} Write a blog post here! ```