From: Jannik ZANDER Date: Tue, 24 Dec 2019 06:43:25 +0000 (+0100) Subject: Add sitemap.xml X-Git-Url: https://git.zndr.dk/?a=commitdiff_plain;h=c53f87edbdbb9d369c82cdfa7c3f8decec105006;p=vuepress.git Add sitemap.xml --- diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 876720d..915cde5 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -2,23 +2,28 @@ module.exports = { title: 'zndr.dk', description: 'My home server', theme: '@vuepress/blog', - plugins: [['@vuepress/blog', { - directories: [ - { - id: 'post', - dirname: '_posts', - path: '/posts/', - itemPermalink: '/posts/:year/:month/:day/:slug', - }, - ], - frontmatters: [ - { - id: "tag", - keys: ['tag', 'tags'], - path: '/tags/', - }, - ], - }]], + plugins: { + '@vuepress/blog': { + directories: [ + { + id: 'post', + dirname: '_posts', + path: '/posts/', + itemPermalink: '/posts/:year/:month/:day/:slug', + }, + ], + frontmatters: [ + { + id: "tag", + keys: ['tag', 'tags'], + path: '/tags/', + }, + ], + }, + 'sitemap': { + hostname: 'https://zndr.dk' + } + }, themeConfig: { nav: [ { text: 'Blog', link: '/posts/' },