diff --git a/src/public/sitemap.xml b/src/public/sitemap.xml index 3add6ba..a43a312 100644 --- a/src/public/sitemap.xml +++ b/src/public/sitemap.xml @@ -1 +1 @@ -https://codybontecou.com/an-introduction-to-meta-tags-a11y-and-seo.htmlhttps://codybontecou.com/automate-with-zapier.htmlhttps://codybontecou.com/contact.htmlhttps://codybontecou.com/continuous-learning-by-continuous-confusion-in-tech.htmlhttps://codybontecou.com/convert-reactjs-component-to-vuejs.htmlhttps://codybontecou.com/cypress-component-testing-with-nuxt-3.htmlhttps://codybontecou.com/disable-video-recording-on-cypress-run.htmlhttps://codybontecou.com/dopamine-fasting-with-100-days-of-code.htmlhttps://codybontecou.com/electron-app-with-vue-devtools.htmlhttps://codybontecou.com/electron-app-with-vuejs-and-vite.htmlhttps://codybontecou.com/generate-twitter-lists-with-python.htmlhttps://codybontecou.com/generating-a-code-snippet-with-carbon.htmlhttps://codybontecou.com/getting-youtube-channel-id-using-their-api.htmlhttps://codybontecou.com/global-state-management-in-an-electron-app.htmlhttps://codybontecou.com/google-analytics-with-vitepress.htmlhttps://codybontecou.com/hide-username-on-mac-terminal-prompt.htmlhttps://codybontecou.com/how-to-use-vuetify-with-nuxt-3.htmlhttps://codybontecou.com/import-pinia-store-into-other-store.htmlhttps://codybontecou.com/index.htmlhttps://codybontecou.com/integrating-nuxt-bridge-with-nuxt2.htmlhttps://codybontecou.com/lets-setup-nuxt-3-with-cypress.htmlhttps://codybontecou.com/mocking-api-with-msw-and-typescript.htmlhttps://codybontecou.com/mocking-http-responses-in-elixir-and-phoenix.htmlhttps://codybontecou.com/nuxt3-and-pinia.htmlhttps://codybontecou.com/post-to-reddit-with-nodejs-and-typescript.htmlhttps://codybontecou.com/programmatically-posting-to-your-favorite-blogs.htmlhttps://codybontecou.com/programmatically-tweeting-with-nodejs.htmlhttps://codybontecou.com/reusable-yaml-variables.htmlhttps://codybontecou.com/selenium-movie-picker.htmlhttps://codybontecou.com/silently-update-url-nuxt-3.htmlhttps://codybontecou.com/stripe-integration-in-nuxt-3.htmlhttps://codybontecou.com/tailwindcss-with-vitepress.htmlhttps://codybontecou.com/talks.htmlhttps://codybontecou.com/time-to-read-article-component.htmlhttps://codybontecou.com/using-url-query-params-in-nuxt-3.htmlhttps://codybontecou.com/vuejs-emit-multiple-values-from-child-to-parent.htmlhttps://codybontecou.com/vuepress-styles.htmlhttps://codybontecou.com/es/foo.htmlhttps://codybontecou.com/projects/e-sports-ai-app.htmlhttps://codybontecou.com/projects/index.html \ No newline at end of file +https://www.codybontecou.com/an-introduction-to-meta-tags-a11y-and-seo.htmlhttps://www.codybontecou.com/automate-with-zapier.htmlhttps://www.codybontecou.com/contact.htmlhttps://www.codybontecou.com/continuous-learning-by-continuous-confusion-in-tech.htmlhttps://www.codybontecou.com/convert-reactjs-component-to-vuejs.htmlhttps://www.codybontecou.com/cypress-component-testing-with-nuxt-3.htmlhttps://www.codybontecou.com/disable-video-recording-on-cypress-run.htmlhttps://www.codybontecou.com/dopamine-fasting-with-100-days-of-code.htmlhttps://www.codybontecou.com/electron-app-with-vue-devtools.htmlhttps://www.codybontecou.com/electron-app-with-vuejs-and-vite.htmlhttps://www.codybontecou.com/generate-twitter-lists-with-python.htmlhttps://www.codybontecou.com/generating-a-code-snippet-with-carbon.htmlhttps://www.codybontecou.com/getting-youtube-channel-id-using-their-api.htmlhttps://www.codybontecou.com/global-state-management-in-an-electron-app.htmlhttps://www.codybontecou.com/google-analytics-with-vitepress.htmlhttps://www.codybontecou.com/hide-username-on-mac-terminal-prompt.htmlhttps://www.codybontecou.com/how-to-use-vuetify-with-nuxt-3.htmlhttps://www.codybontecou.com/import-pinia-store-into-other-store.htmlhttps://www.codybontecou.com/index.htmlhttps://www.codybontecou.com/integrating-nuxt-bridge-with-nuxt2.htmlhttps://www.codybontecou.com/lets-setup-nuxt-3-with-cypress.htmlhttps://www.codybontecou.com/mocking-api-with-msw-and-typescript.htmlhttps://www.codybontecou.com/mocking-http-responses-in-elixir-and-phoenix.htmlhttps://www.codybontecou.com/nuxt3-and-pinia.htmlhttps://www.codybontecou.com/post-to-reddit-with-nodejs-and-typescript.htmlhttps://www.codybontecou.com/programmatically-posting-to-your-favorite-blogs.htmlhttps://www.codybontecou.com/programmatically-tweeting-with-nodejs.htmlhttps://www.codybontecou.com/reusable-yaml-variables.htmlhttps://www.codybontecou.com/selenium-movie-picker.htmlhttps://www.codybontecou.com/silently-update-url-nuxt-3.htmlhttps://www.codybontecou.com/stripe-integration-in-nuxt-3.htmlhttps://www.codybontecou.com/tailwindcss-with-vitepress.htmlhttps://www.codybontecou.com/talks.htmlhttps://www.codybontecou.com/time-to-read-article-component.htmlhttps://www.codybontecou.com/using-url-query-params-in-nuxt-3.htmlhttps://www.codybontecou.com/vuejs-emit-multiple-values-from-child-to-parent.htmlhttps://www.codybontecou.com/vuepress-styles.htmlhttps://www.codybontecou.com/es/foo.htmlhttps://www.codybontecou.com/projects/e-sports-ai-app.htmlhttps://www.codybontecou.com/projects/index.html \ No newline at end of file diff --git a/util/generateSitemap.js b/util/generateSitemap.js index 6bcf702..37ad169 100644 --- a/util/generateSitemap.js +++ b/util/generateSitemap.js @@ -1,28 +1,28 @@ -import fs from 'fs'; -import path from 'path'; -import fg from 'fast-glob'; -import { SitemapStream, streamToPromise } from 'sitemap'; -import { fileURLToPath } from 'url'; +import fs from 'fs' +import path from 'path' +import fg from 'fast-glob' +import { SitemapStream, streamToPromise } from 'sitemap' +import { fileURLToPath } from 'url' -console.log('Start building sitemap..'); +console.log('Start building sitemap..') -const __filename = fileURLToPath(import.meta.url); -const __dirname = path.dirname(__filename); +const __filename = fileURLToPath(import.meta.url) +const __dirname = path.dirname(__filename) const linksStream = fg - .stream(['**/*.md', '!**/node_modules', '!README.md']) - .map(filePath => ({ - url: filePath.replace('src/', '').replace(/\.md$/, '.html'), - })); + .stream(['**/*.md', '!**/node_modules', '!README.md']) + .map(filePath => ({ + url: filePath.replace('src/', '').replace(/\.md$/, '.html'), + })) const sitemapStream = new SitemapStream({ - hostname: 'https://codybontecou.com/', -}); + hostname: 'https://www.codybontecou.com/', +}) // Return a promise that resolves with your XML string streamToPromise(linksStream.pipe(sitemapStream)).then(sitemap => { - fs.writeFileSync( - path.resolve(__dirname, '../src/public/sitemap.xml'), - sitemap - ); -}); + fs.writeFileSync( + path.resolve(__dirname, '../src/public/sitemap.xml'), + sitemap + ) +})