Skip to content

Commit 68f887c

Browse files
committed
opengraph needs property in meta, not name
1 parent c7660ee commit 68f887c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

django/gsmap/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ def save_meta(storage):
243243
domain = Site.objects.get_current().domain
244244
proto = 'https' if settings.USE_HTTPS else 'http'
245245
meta = f'''
246-
<meta name="og:title" content="{instance.title}">
247-
<meta name="og:url" content="{proto}://{domain}{instance.get_absolute_url()}">
248-
<meta name="og:image" content="{proto}://{domain}/{instance.image_facebook()}">
246+
<meta property="og:title" content="{instance.title}">
247+
<meta property="og:url" content="{proto}://{domain}{instance.get_absolute_url()}">
248+
<meta property="og:image" content="{proto}://{domain}/{instance.image_facebook()}">
249249
<meta name="twitter:image" content="{proto}://{domain}/{instance.image_twitter()}">
250250
'''
251251
storage.save(f'snapshot-meta/{instance.id}.html', ContentFile(meta))

0 commit comments

Comments
 (0)