From c53f87edbdbb9d369c82cdfa7c3f8decec105006 Mon Sep 17 00:00:00 2001 From: Jannik ZANDER Date: Tue, 24 Dec 2019 07:43:25 +0100 Subject: [PATCH] Add sitemap.xml --- docs/.vuepress/config.js | 39 ++++++++++++++++++++++----------------- 1 file changed, 22 insertions(+), 17 deletions(-) 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/' }, -- 2.43.0