Skip to content

Commit c6c665a

Browse files
committed
fix blog page titles
1 parent e47cbc9 commit c6c665a

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CHANGELOG.md
22

3-
## 0.32.1 (unreleased)
3+
## 0.32.1 (2025-01-03)
44

55
This is a bugfix release.
66

examples/official-site/blog.sql

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
select 'redirect' as component, '/blog.sql' as link
22
where ($post IS NULL AND sqlpage.path() <> '/blog.sql') OR ($post IS NOT NULL AND NOT EXISTS (SELECT 1 FROM blog_posts WHERE title = $post));
33

4-
select 'dynamic' as component, properties FROM example WHERE component = 'shell' LIMIT 1;
4+
select 'dynamic' as component, json_patch(json_extract(properties, '$[0]'), json_object(
5+
'title', coalesce($post || ' - ', '') || 'SQLPage Blog'
6+
)) as properties
7+
FROM example WHERE component = 'shell' LIMIT 1;
58

69
SELECT 'text' AS component,
710
true as article,

0 commit comments

Comments
 (0)