Skip to content

Commit

Permalink
wip: schema.org
Browse files Browse the repository at this point in the history
  • Loading branch information
al-cd authored and al committed Jul 22, 2024
1 parent c27927e commit d16b80f
Show file tree
Hide file tree
Showing 5 changed files with 1,620 additions and 6 deletions.
1 change: 1 addition & 0 deletions cspell.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ ignoreWords:
- navpanes
- pdfobject
- predeploy
- prerender
- realpath
- substr
- svgrepo
Expand Down
10 changes: 10 additions & 0 deletions generate-sitemap.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const { createSitemap } = require('vue-router-sitemap')
const { routes } = require('./dist/server/routes')

const sitemap = createSitemap({
hostname: 'https://www.example.com',
routes: routes,
})

const xml = sitemap.toString()
console.log(xml)
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"@headlessui/vue": "^1.7.22",
"@heroicons/vue": "^2.1.3",
"@gtm-support/vue-gtm": "^3.0.1",
"@unhead/schema-org": "^1.9.14",
"@unhead/vue": "^1.9.14",
"@vueuse/core": "^10.11.0",
"dotenv": "^16.4.5",
Expand Down Expand Up @@ -47,7 +48,8 @@
"tailwindcss": "^3.4.6",
"vite": "^5.3.1",
"vite-plugin-vue-devtools": "^7.3.1",
"vue-tsc": "^2.0.26"
"vue-tsc": "^2.0.26",
"vite-plugin-prerender": "^1.0.8"
},
"name": "lionels-legacy",
"packageManager": "[email protected]",
Expand Down
Loading

0 comments on commit d16b80f

Please sign in to comment.