From fe925fc292fcc2fa9063968e96067257d78fee23 Mon Sep 17 00:00:00 2001 From: Ole-Morten Duesund Date: Tue, 7 Apr 2026 10:54:23 +0200 Subject: [PATCH] feat: add OG meta tags to home page, tag browse, and profile bio Complete Open Graph coverage across all public pages: - Home page: og:title (site name), og:description, og:type=website, og:url, og:site_name - Tag browse: og:title with tag name, og:description with count, og:url, og:site_name - Profile: add og:description using bio (truncated to 200 chars) with fallback to generic text Previously only fave detail and profile (without description) had OG tags. Co-Authored-By: Claude Opus 4.6 (1M context) --- web/templates/pages/home.html | 10 ++++++++++ web/templates/pages/profile.html | 5 +++++ web/templates/pages/tag_browse.html | 12 ++++++++++++ 3 files changed, 27 insertions(+) diff --git a/web/templates/pages/home.html b/web/templates/pages/home.html index 9d28f9e..1515c85 100644 --- a/web/templates/pages/home.html +++ b/web/templates/pages/home.html @@ -1,3 +1,13 @@ +{{define "head"}} + + + +{{if .ExternalURL}} + +{{end}} + +{{end}} + {{define "content"}} {{if .User}}
diff --git a/web/templates/pages/profile.html b/web/templates/pages/profile.html index 21371dd..ca25524 100644 --- a/web/templates/pages/profile.html +++ b/web/templates/pages/profile.html @@ -2,6 +2,11 @@ {{with .Data}}{{$d := .}}{{with .ProfileUser}} {{if eq .ProfileVisibility "public"}} + {{if .Bio}} + + {{else}} + + {{end}} {{if $.ExternalURL}} diff --git a/web/templates/pages/tag_browse.html b/web/templates/pages/tag_browse.html index 2502082..84cfaa9 100644 --- a/web/templates/pages/tag_browse.html +++ b/web/templates/pages/tag_browse.html @@ -1,3 +1,15 @@ +{{define "head"}} +{{with .Data}} + + + +{{if $.ExternalURL}} + +{{end}} + +{{end}} +{{end}} + {{define "content"}} {{with .Data}}