Add static og: tag to the index page
authorMagnus Hagander <magnus@hagander.net>
Thu, 22 Oct 2020 12:30:10 +0000 (14:30 +0200)
committerMagnus Hagander <magnus@hagander.net>
Thu, 22 Oct 2020 12:30:10 +0000 (14:30 +0200)
pgweb/core/views.py

index 9684a08253c8a76afaebf5d208f255286bf5bbd0..dd9be63616241077a10f2fa2e61ef219103c62c3 100644 (file)
@@ -78,6 +78,13 @@ def home(request):
         'events': events,
         'versions': versions,
         'planet': planet,
+        'og': {
+            'url': '/',
+            'author': 'PostgreSQL Global Development Group',
+            'time': datetime.now(),
+            'title': 'PostgreSQL',
+            'description': "The world's most advanced open source database.",
+        },
     })