]> git.zndr.dk Git - vuepress.git/commitdiff
Add sitemap.xml
authorJannik ZANDER <jannik@zndr.dk>
Tue, 24 Dec 2019 06:43:25 +0000 (07:43 +0100)
committerJannik ZANDER <jannik@zndr.dk>
Tue, 24 Dec 2019 06:43:25 +0000 (07:43 +0100)
docs/.vuepress/config.js

index 876720dd035b14833e76562cca7dc2a0d2b9ae54..915cde5ceaf0d5817e62b0449772c8d747716a4b 100644 (file)
@@ -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/' },