Skip to content

Commit 47b58a7

Browse files
committed
wording
1 parent dc40ada commit 47b58a7

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

src/content/docs/tools/turn-signal.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ If you want to tell the script about the order of the pages on your site, use th
165165
<script ... data-selector="header a, nav.sidebar li a"></script>
166166
```
167167

168-
Here the first CSS selector selects the home page and the second all pages from the global site navigation. This selector will fit for all Starlight sites.
168+
Here the first CSS selector selects the home page and the second all pages from the global site navigation. This selector will for example fit for all Starlight sites and the pattern can be adapted for sites with a similar main navigation.
169169

170170
| Config option | Type | Effect |
171171
| ------------------------ | --------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |

src/layouts/Layout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const href = canonical ?? Astro.url.href;
2424
<slot name="head" />
2525
<meta charset="UTF-8" />
2626
<title>{title + " | @vtbag"}</title>
27-
<meta name="viewport" content="width=device-width, initial-scale=1" />
27+
<meta name="viewport" content="width=device-width, minimum-scale=1" />
2828
<link rel="canonical" href={href} />
2929
{
3030
(

src/pages/viewer-demo/_1.mdx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
This page features links to a previous and a next page. The HTML for these two links has an additional `data-vtbag-link-types` attribute:
22

33
```html
4-
<a href="/viewer-demo/3/" data-vtbag-link-types="next/prev">Prev</a>
5-
<a href="." data-vtbag-link-types="same">Same</a>
6-
<a href="/viewer-demo/2/" data-vtbag-link-types="prev/next">Next</a>
4+
<a href="/viewer-demo/3/"
5+
data-vtbag-link-types="next/prev">Prev</a>
6+
<a href="."
7+
data-vtbag-link-types="same">Same</a>
8+
<a href="/viewer-demo/2/"
9+
data-vtbag-link-types="prev/next">Next</a>
710
```
811

912
The identifiers after the slash (/) are set as view transition types on forward navigation. The identifiers before the slash are used as view transition types for history back traversals. You might even specify three values `a/b/c` for backward, same, and forward directions. Or a single value, which will then be used for all directions.

0 commit comments

Comments
 (0)