Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,16 @@ export default defineConfig({
["meta", { property: "og:type", content: "website" }],
["meta", { property: "og:site_name", content: "entity" }],
["meta", { property: "og:locale", content: "en_US" }],
["meta", { property: "og:image", content: `${SITE_URL}logo-light.svg` }],
["meta", { property: "og:image:type", content: "image/svg+xml" }],
// The 1280x640 social card, on the same template as the other btravstack
// packages. SVG is not a valid og:image: X, Slack, LinkedIn and Discord all
// refuse to render one, which is why pointing this at the logo produced no
// preview at all rather than a small one.
["meta", { property: "og:image", content: `${SITE_URL}og-entity.png` }],
["meta", { property: "og:image:type", content: "image/png" }],
// The card's true size. The sibling sites declare 1200x630 (the size the OG
// docs recommend) while shipping a 1280x640 file; these are measured.
["meta", { property: "og:image:width", content: "1280" }],
["meta", { property: "og:image:height", content: "640" }],
[
"meta",
{
Expand All @@ -213,8 +221,10 @@ export default defineConfig({
},
],
// Twitter Card
["meta", { name: "twitter:card", content: "summary" }],
["meta", { name: "twitter:image", content: `${SITE_URL}logo-light.svg` }],
// summary_large_image is the wide banner; plain `summary` crops to a square
// thumbnail beside the title and wastes the card.
["meta", { name: "twitter:card", content: "summary_large_image" }],
["meta", { name: "twitter:image", content: `${SITE_URL}og-entity.png` }],
[
"meta",
{
Expand Down
Binary file added docs/public/og-entity.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading