From d23479efddb303591bd79f00c5578327c8a4f8b8 Mon Sep 17 00:00:00 2001 From: navanchauhan Date: Mon, 28 Jun 2021 16:30:01 +0530 Subject: adding description to link previews --- templates/base.html | 22 +++++++++++----------- templates/post.html | 10 +++++++++- 2 files changed, 20 insertions(+), 12 deletions(-) (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index 2a48404..378759b 100644 --- a/templates/base.html +++ b/templates/base.html @@ -8,20 +8,20 @@ Hey - {% block title %}{% endblock %} - - - - - - - - - + + + + + + + + + - - + + diff --git a/templates/post.html b/templates/post.html index 596ded2..fd3bd4c 100644 --- a/templates/post.html +++ b/templates/post.html @@ -1,5 +1,13 @@ {% extends "base.html" %} -{% block title %}Post{% endblock %} + +{% block title %}Post - {{content.metadata.title}}{% endblock %} +{% block ogtitle %}Post - {{content.metadata.title}}{% endblock %} +{% block twittertitle %}Post - {{content.metadata.title}}{% endblock %} + +{% block description %} {{content.metadata.description}} {% endblock %} +{% block ogdescription %} {{content.metadata.description}} {% endblock %} +{% block twitterdescription %} {{content.metadata.description}} {% endblock %} +{% block twitter2description %} {{content.metadata.description}} {% endblock %} {% block body %}
-- cgit v1.2.3