docs(site): add description and og:image for link preview cards #770

Open
dries wants to merge 1 commit from docs/site-preview-cards into main
Owner

Shared links to the site rendered as bare text cards: no og:image, an empty <meta name="description"> on the home page, and twitter:card=summary.

  • params.description gives the site a default description, and the home page front matter sets its own.
  • params.images = ["sessions.png"] (already mounted from docs/) makes Hextra emit og:image and twitter:image on every page and switches the card to summary_large_image.

Checked with a local hugo build: home and docs pages now include og:image, twitter:image, twitter:card=summary_large_image, and a non-empty description and og:description.

Shared links to the site rendered as bare text cards: no `og:image`, an empty `<meta name="description">` on the home page, and `twitter:card=summary`. - `params.description` gives the site a default description, and the home page front matter sets its own. - `params.images = ["sessions.png"]` (already mounted from `docs/`) makes Hextra emit `og:image` and `twitter:image` on every page and switches the card to `summary_large_image`. Checked with a local `hugo` build: home and docs pages now include `og:image`, `twitter:image`, `twitter:card=summary_large_image`, and a non-empty description and `og:description`.
docs(site): add description and og:image for link preview cards
Some checks are pending
CI / Coverage Results (pull_request) Blocked by required conditions
CI / Semantic Tag (pull_request) Blocked by required conditions
CI / Frontend (pull_request) Has started running
CI / Backend (pull_request) Has started running
CI / Playwright E2E (pull_request) Has started running
305af33d80
Some checks are pending
CI / Coverage Results (pull_request) Blocked by required conditions
Required
Details
CI / Semantic Tag (pull_request) Blocked by required conditions
Required
Details
CI / Frontend (pull_request) Has started running
Required
Details
CI / Backend (pull_request) Has started running
Required
Details
CI / Playwright E2E (pull_request) Has started running
Required
Details
Some required checks are missing.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin docs/site-preview-cards:docs/site-preview-cards
git switch docs/site-preview-cards
Sign in to join this conversation.
No description provided.