Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify getting metadata for Schema, Open Graph, Twitter Card, and Search Meta #148

Open
3 of 12 tasks
JSn1nj4 opened this issue Sep 3, 2023 — with Volta.net · 1 comment
Open
3 of 12 tasks

Comments

Copy link
Owner

JSn1nj4 commented Sep 3, 2023

Thinking:

  • Contracts
  • DTOs
  • Blade components
  • DTOs should have appropriate defaults—in theory, a new DTO should not error
  • DTOs may have a from method that accepts an object that can supply appropriate fields
  • Contract implementers may have to<MetaType>DTO methods
  • Contract implementers may have <MetaType>Fields field maps
  • Blade components should not error on a zero-length field, just decide if a meta tag should be created

Schema

  • SchemaDotOrgContract
  • SchemaDotOrgDTO
  • SchemaDotOrg (component)

Open Graph

  • OpenGraphContract
  • OpenGraphDTO
  • OpenGraph (component)

Twitter Card

Gonna start using X instead of Twitter on new stuff.

  • XMetaContract
  • XMetaDTO
  • XMeta (component)

Search Meta

This stuff is a maybe. Title and meta description are already used in a few places.

  • SearchMetaContract
  • SearchMetaDTO
  • SearchMeta (component)
Copy link
Owner Author

JSn1nj4 commented Sep 5, 2023

For X, should have Summary Card fallback using avatar instead of large image if no large image available. That would be a cool fallback.
https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/summary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant