You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/more-pages.md
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -72,6 +72,16 @@ You can specify `alias` to avoid unnecessary fallback.
72
72
73
73
!> You can create a `README.md` file in a subdirectory to use it as the landing page for the route.
74
74
75
+
## Set Page Titles from Sidebar Selection
76
+
77
+
A page's `title` tag is generated from the _selected_ sidebar item name. For better SEO, you can customize the title by specifying a string after the filename.
78
+
79
+
```markdown
80
+
<!-- docs/_sidebar.md -->
81
+
* [Home](/)
82
+
* [Guide](guide.md "The greatest guide in the world")
83
+
```
84
+
75
85
## Table of Contents
76
86
77
87
Once you've created `_sidebar.md`, the sidebar content is automatically generated based on the headers in the markdown files.
0 commit comments