Skip to content

Commit 5998d20

Browse files
committed
redirect invalid URLs in blog.sql
1 parent 7a2cc09 commit 5998d20

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/official-site/blog.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
select 'redirect' as component, '/blog.sql' as link
2+
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));
3+
14
select 'dynamic' as component, properties FROM example WHERE component = 'shell' LIMIT 1;
25

36
SELECT 'text' AS component,

0 commit comments

Comments
 (0)