summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html22
-rw-r--r--templates/post.html10
2 files changed, 20 insertions, 12 deletions
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 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hey - {% block title %}{% endblock %}</title>
<meta name="og:site_name" content="Navan Chauhan" />
- <link rel="canonical" href="https://navanchauhan.github.io/" />
- <meta name="twitter:url" content="https://navanchauhan.github.io/" />
- <meta name="og:url" content="https://navanchauhan.github.io/" />
- <meta name="twitter:title" content="Hey" />
- <meta name="og:title" content="Hey" />
- <meta name="description" content="Welcome to my personal fragment of the internet." />
- <meta name="twitter:description" content="Welcome to my personal fragment of the internet. Majority of the posts should be complete." />
- <meta name="og:description" content="Welcome to my personal fragment of the internet." />
- <meta name="twitter:card" content="summary" />
+ <link rel="canonical" href="https://web.navan.dev/" />
+ <meta name="twitter:url" content="https://web.navan.dev/" />
+ <meta name="og:url" content="https://web.navan.dev/" />
+ <meta name="twitter:title" content="Hey - {% block twittertitle %}{% endblock %}" />
+ <meta name="og:title" content="Hey - {% block ogtitle %}{% endblock %}" />
+ <meta name="description" content="{% block description %}{% endblock %}" />
+ <meta name="twitter:description" content="{% block twitterdescription %}{% endblock %}" />
+ <meta name="og:description" content="{% block ogdescription %}{% endblock %}" />
+ <meta name="twitter:card" content="{% block twitter2description %}{% endblock %}" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="/images/favicon.png" type="image/png" />
<link rel="alternate" href="/feed.rss" type="application/rss+xml" title="Subscribe to Navan Chauhan" />
- <meta name="twitter:image" content="https://navanchauhan.github.io/images/logo.png" />
- <meta name="og:image" content="https://navanchauhan.github.io/images/logo.png" />
+ <meta name="twitter:image" content="https://web.navan.dev/images/logo.png" />
+ <meta name="og:image" content="https://web.navan.dev/images/logo.png" />
<link rel="manifest" href="manifest.json" />
<meta name="google-site-verification" content="LVeSZxz-QskhbEjHxOi7-BM5dDxTg53x2TwrjFxfL0k" />
<script async src="//gc.zgo.at/count.js" data-goatcounter="https://navanchauhan.goatcounter.com/count"></script>
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 %}
<main>