Skip to content

Commit ba38414

Browse files
committed
Add og tags
1 parent 7731235 commit ba38414

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

pgcommitfest/commitfest/templates/base.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
<html>
66
<head>
77
<title>{{title|default:'Commitfest' }}</title>
8+
<meta name="description" content="{{description|default:'The PostgreSQL Commitfest app tracks patches and reviews as part of the PostgreSQL development process.'}}" />
9+
<meta property="og:title" content="{{title|default:'Commitfest'}}" />
10+
<meta property="og:description" content="{{description|default:'The PostgreSQL Commitfest app tracks patches and reviews as part of the PostgreSQL development process.'}}" />
11+
<meta property="og:type" content="website" />
12+
<meta property="og:site_name" content="PostgreSQL Commitfest" />
13+
<meta property="og:url" content="{{request.build_absolute_uri}}" />
814
<link rel="stylesheet" href="/media/commitfest/css/jquery-ui.css" type="text/css">
915
<link rel="stylesheet" href="/media/commitfest/css/bootstrap.css?v=5.3.7" />
1016
<link rel="stylesheet" href="/media/commitfest/css/bootstrap-icons.css" />

pgcommitfest/commitfest/views.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,10 @@ def patch(request, patchid):
917917
"committers": committers,
918918
"attachnow": "attachthreadnow" in request.GET,
919919
"title": patch.name,
920+
"description": (
921+
"PostgreSQL patch by %s in the %s commitfest."
922+
% (patch.authors_string or "unknown author", cf.title)
923+
),
920924
"breadcrumbs": [
921925
{"title": cf.title, "href": "/%s/" % cf.pk},
922926
],

0 commit comments

Comments
 (0)