mirror of
https://github.com/thomiceli/opengist.git
synced 2026-08-07 07:14:49 +00:00
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
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>