framework icon indicating copy to clipboard operation
framework copied to clipboard

docs: add minimum sitemap to nuxt.com

Open IsraelOrtuno opened this issue 3 years ago • 4 comments

❓ Type of change

  • [x] 📖 Documentation (updates to the documentation or readme)
  • [ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
  • [ ] 👌 Enhancement (improving an existing functionality like performance)
  • [ ] ✨ New feature (a non-breaking change that adds functionality)
  • [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

I have added a very basic sitemap file for SEO purposes. This could be improved in the future by adding other parameters such as priority and lastmod if there's a way to guess when a content/**/.md file was modified.

Also included the sitemap in the robots.txt as search engines suggest so they can easily find it.

📝 Checklist

  • [ ] I have linked an issue or discussion.
  • [ ] I have updated the documentation accordingly.

IsraelOrtuno avatar Nov 18 '22 09:11 IsraelOrtuno

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

codesandbox[bot] avatar Nov 18 '22 09:11 codesandbox[bot]

Thank you so much @IsraelOrtuno ❤️

I think the server code had to move to the nuxt-website-theme repo (we plan to open source in the next weeks), cc @clemcode

atinux avatar Nov 18 '22 10:11 atinux

Was looking for it for a while to see where it would make more sense but since I did not find it I thought adding it here

IsraelOrtuno avatar Nov 18 '22 11:11 IsraelOrtuno

It was great to add it here, would be easy for us to move into the theme (beauty of nuxt extends)

atinux avatar Nov 18 '22 14:11 atinux

@IsraelOrtuno the code has been moved to the theme repository, and will be up tomorrow. Thanks a lot for the contribution, I will now close the PR.

clemcode avatar Nov 24 '22 17:11 clemcode