Skip to content

Commit aef70fb

Browse files
committed
fix breadcrumb links
1 parent 6fa7a59 commit aef70fb

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

examples/official-site/component.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ select 'dynamic' as component, json_patch(json_extract(properties, '$[0]'), json
1111
)) as properties
1212
FROM example WHERE component = 'shell' LIMIT 1;
1313

14+
select
15+
'breadcrumb' as component;
16+
select 'SQLPage' as title, '/' as link, 'Home page' as description;
17+
select 'Components' as title, '/documentation.sql' as link, 'List of all components' as description;
18+
select $component as title, '/component.sql?component=' || sqlpage.url_encode($component) as link;
19+
1420
select 'text' as component, 'component' as id,
1521
format('# The **%s** component
1622

examples/official-site/sqlpage/migrations/30_breadcrumb_component.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ VALUES
5757
'[
5858
{"component":"breadcrumb"},
5959
{"title":"Home","link":"/"},
60-
{"title":"Components"},
61-
{"title":"Breadcrumb"}
60+
{"title":"Components", "link":"/documentation.sql"},
61+
{"title":"Breadcrumb", "link":"?component=breadcrumb"}
6262
]'
6363
)
6464
),
@@ -68,9 +68,9 @@ VALUES
6868
JSON(
6969
'[
7070
{"component":"breadcrumb"},
71-
{"title":"Home","link":"/", "active": true},
72-
{"title":"Articles","link":"blog.sql","description":"Stay informed with the latest news"},
73-
{"title":"No code vs. Low Code","link":"/blog.sql?post=SQLPage versus No-Code tools"}
71+
{"title":"Home","link":"/","active": true},
72+
{"title":"Articles","link":"/blog.sql","description":"Stay informed with the latest news"},
73+
{"title":"JSON in SQL","link":"/blog.sql?post=JSON%20in%20SQL%3A%20A%20Comprehensive%20Guide", "description": "Learn advanced json functions for MySQL, SQLite, PostgreSQL, and SQL Server" }
7474
]'
7575
)
7676
);

0 commit comments

Comments
 (0)