Skip to content

Commit f74b53f

Browse files
authored
Merge pull request #733 from jthegedus/master
document customising page title with sidebar
2 parents bba44fb + 99dbaa3 commit f74b53f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/more-pages.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,16 @@ You can specify `alias` to avoid unnecessary fallback.
7272

7373
!> You can create a `README.md` file in a subdirectory to use it as the landing page for the route.
7474

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+
7585
## Table of Contents
7686

7787
Once you've created `_sidebar.md`, the sidebar content is automatically generated based on the headers in the markdown files.

0 commit comments

Comments
 (0)