Feature/f 157 improve seo and metadata on each page #144
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SEO and Metadata Enhancements:
src/app/about/layout.tsx
,src/app/data_sources/layout.tsx
,src/app/download-portal/layout.tsx
,src/app/wiki/layout.tsx
: Updated metadata to include dynamic titles, descriptions, keywords, OpenGraph, and Twitter card information usingsiteConfig
. [1] [2] [3] [4]src/app/layout.tsx
: Added JSON-LD structured data for better search engine understanding.Sitemap and Robots.txt Integration:
next-sitemap.config.js
: Added configuration for generating sitemap and robots.txt with daily change frequency and priority settings.We have to also exclude some pages in sitemap config (tbd). @marinovl7
- Internal pages (e.g. /admin maybe, I'm not sure if we have plan to have admin page).
- Test pages.
- Pages with no SEO value
public/sitemap.xml
: Added sitemap with URLs for various pages, including change frequency and priority.public/robots.txt
: Added robots.txt to allow all user agents and specify the sitemap location.Package and Configuration Updates:
package.json
: Addednext-sitemap
as a dependency and included apostbuild
script to generate the sitemap after building the project. [1] [2]To be noticed yarn postbuild must excuted after yarn build, otherwise sitemap.xml cannot be made correctly
src/config/site.ts
: UpdatedsiteConfig
to include keywords and domain information for use in metadata and SEO configurations. [1] [2]@Tschonti @marinovl7 Please give some feedbacks regarding what I have done, since some points I'm also not sure