Skip to content

Commit 98afe59

Browse files
committed
SEO
1 parent 8d31807 commit 98afe59

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
- **Ease of use** : the component can now be used to automatically format any query result as a json array, without manually using your database''s json functions.
1414
- **server-sent events** : the component can now be used to stream query results to the client in real-time using server-sent events.
1515
- The [csv](https://sql.datapage.app/component.sql?component=csv) component can now be used as a header component to trigger a download of the CSV file directly on page load. Just select the `csv` as a component without a shell before it, and the CSV will be efficiently streamed to the user''s browser. This finally allows efficiently serving large datasets as CSV.
16+
- In the shell component, the site title is no longer wrapped in a `<h1>` tag, which should help search engines better understand the content of the page, and potentially improve SEO.
1617

1718
## 0.29.0 (2024-09-25)
1819
- New columns component: `columns`. Useful to display a comparison between items, or large key figures to an user.

examples/official-site/index.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ SELECT 'Fast' as title,
3333

3434
SELECT 'hero' as component,
3535
true as reverse,
36-
'🧩 Batteries included' as title,
37-
'At the core of SQLPage is a [rich library of components](/documentation.sql) for tables, charts, maps, timelines, forms and much more.
36+
'🧩 Easy User Interface' as title,
37+
'At the core of SQLPage is a [rich library of user interface components](/documentation.sql) for tables, charts, maps, timelines, forms and much more.
3838
39-
You just populate the components with data returned by your database queries.' as description_md,
39+
To build your app, you just populate the components with data returned by your database queries.' as description_md,
4040
'sqlpage_illustration_components.webp' as image;
4141

4242
SELECT 'hero' as component,
43-
'🪄 We did the hard part' as title,
43+
'🪄 Automatic' as title,
4444
'SQLPage handles HTTP requests, database connections, streaming rendering, styling, [security](safety.sql), and [performance](performance.sql) for you.
4545
4646
Focus only on your data, and how you want to present it. We''ve tamed the tech, you tame the data.' as description_md,

sqlpage/templates/shell.handlebars

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@
166166
<button class="navbar-toggler collapsed" type="button" data-bs-target="#sidebar-menu" aria-controls="sidebar-menu" data-bs-toggle="collapse" aria-expanded="false" aria-label="Toggle navigation">
167167
<span class="navbar-toggler-icon"></span>
168168
</button>
169-
<h1 class="navbar-brand navbar-brand-autodark d-inline ps-2 text-truncate">
170-
<a style="text-decoration: none" href="{{#if link}}{{link}}{{else}}/{{/if}}">
169+
<span class="navbar-brand navbar-brand-autodark d-inline ps-2 text-truncate">
170+
<a class="text-decoration-none text-body" href="{{#if link}}{{link}}{{else}}/{{/if}}">
171171
{{#if image}}
172172
<img src="{{image}}" alt="{{title}}" height="32" class="navbar-brand-image">
173173
{{/if}}
@@ -176,7 +176,7 @@
176176
{{/if}}
177177
<span class="pe-2 pe-lg-0 align-middle">{{title}}</span>
178178
</a>
179-
</h1>
179+
</span>
180180
<div class="navbar-collapse collapse" id="sidebar-menu">
181181
{{> menu-items menu_item=menu_item}}
182182
</div>
@@ -193,9 +193,9 @@
193193
{{~icon_img icon~}}
194194
{{/if}}
195195
</a>
196-
<h1 class="mb-0 fs-2 text-truncate flex-grow-1" style="flex-basis:0">
197-
<a class="text-decoration-none" href="{{#if link}}{{link}}{{else}}/{{/if}}">{{default navbar_title title}}</a>
198-
</h1>
196+
<span class="mb-0 fs-2 text-truncate flex-grow-1" style="flex-basis:0">
197+
<a class="text-decoration-none text-body" href="{{#if link}}{{link}}{{else}}/{{/if}}">{{default navbar_title title}}</a>
198+
</span>
199199
{{#if (or menu_item search_target)}}
200200
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar-menu" aria-controls="navbar-menu" aria-expanded="false" aria-label="Toggle navigation">
201201
<span class="navbar-toggler-icon"></span>

0 commit comments

Comments
 (0)