Greater-London-Authority / ldn-viz-tools

https://greater-london-authority.github.io/ldn-viz-tools/
1 stars 0 forks source link

Adds PageMetadata component #307

Closed PaulioRandall closed 4 months ago

PaulioRandall commented 4 months ago

What does this change?

Adds a <PageMetadata> component that allows <head> tag information to be supplied on per-page basis. This includes but not limited to:

Why?

  1. Search Engine Optimization (SEO): This information is used by search engines to index our digital services
  2. Preview links: (OpenGraph) This information is used for preview links and text within search engine results (e.g. Google, DuckDuckGo, etc), social media platforms (e.g. X/Twitter, Facebook, etc), and communication platforms (e.g. MS Teams, WhatsApp, etc)

How is it tested?

In various services but has been used in the following apps for 3-6 months:

How is it documented?

In code. This component is not really documentable via Storybook since there is no UI element.

Is it complete?