Files
opengist/templates
Alexander Fortin c3f86616f5
Go CI / Lint (push) Has been cancelled
Go CI / Check (push) Has been cancelled
Go CI / Test (mysql, 1.26, mysql:8, ubuntu-latest, 3306:3306) (push) Has been cancelled
Go CI / Test (postgres, 1.26, postgres:16, ubuntu-latest, 5432:5432) (push) Has been cancelled
Go CI / Test (sqlite, 1.26, macOS-latest) (push) Has been cancelled
Go CI / Test (sqlite, 1.26, ubuntu-latest) (push) Has been cancelled
Go CI / Build (1.26, macOS-latest) (push) Has been cancelled
Go CI / Build (1.26, ubuntu-latest) (push) Has been cancelled
Go CI / Build (1.26, windows-latest) (push) Has been cancelled
feat: add Open Graph & Twitter Card meta tags for gist social sharing (#756)
Adds Open Graph and Twitter Card meta tags to gist pages so that pasting
an Opengist URL into Discord, Slack, IRC and similar clients produces a
rich preview card (like gist.github.com does).

- templates/base/seo_meta.html (new): reusable partial rendering og:* and
  twitter:* tags, gated on a loaded gist.
- templates/base/base_header.html: include the partial in <head>.
- internal/web/server/renderer.go: add ogText helper that collapses
  whitespace and truncates text for clean meta values.
- internal/web/handlers/gist/gist_test.go: TestGistSocialMetaTags.
- CHANGELOG.md: entry.


Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-07-11 10:56:06 +08:00
..
2026-07-03 17:06:57 +08:00
2023-09-03 00:30:57 +02:00