Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit 4373f16

Browse files
committed
docs: guide sitemap
1 parent 69fa262 commit 4373f16

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/guide/getting-started.md

+19
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,25 @@ classification:
317317

318318
- [Config > frontmatters](../config/README.md#frontmatters)
319319

320+
## Sitemap
321+
322+
I can't see a reason you don't want a sitemap. Sitemap is a XML file that helps search engines better index your blog.
323+
The file will be generated by simply passing down your host name as below.
324+
```js
325+
// .vuepress/config.js
326+
module.exports = {
327+
plugins: [
328+
[
329+
'@vuepress/blog',
330+
{
331+
sitemap: {
332+
hostname: 'https://yourdomain'
333+
},
334+
},
335+
],
336+
],
337+
}
338+
```
320339
## Comment
321340

322341
Comment is a great way to make your blog much more lively. We integrate client side comment services: [Vssue](https://vssue.js.org/) and [Disqus](https://disqus.com/) in this plugin. The former is a vue-powered and issue-based open source project which can enable comments for your static pages, while the latter is a networked platform that provides comment service used by hundreds of thousands of websites.

0 commit comments

Comments
 (0)