From a17d8bc9fa43237b6613ef62b10352b3a2a2a113 Mon Sep 17 00:00:00 2001 From: Wesley Moore Date: Mon, 14 Sep 2020 10:53:19 +1000 Subject: [PATCH] Add OpenGraph and Twitter metadata to posts --- v2/config.toml | 1 + v2/templates/layout.html | 1 + v2/templates/page.html | 10 ++++++++++ 3 files changed, 12 insertions(+) diff --git a/v2/config.toml b/v2/config.toml index db17bc5..6cb5296 100644 --- a/v2/config.toml +++ b/v2/config.toml @@ -21,3 +21,4 @@ build_search_index = false [extra] author = "Wesley Moore" email = "wes@wezm.net" +twitter_name = "@wezm" diff --git a/v2/templates/layout.html b/v2/templates/layout.html index e622b0f..b548dc8 100644 --- a/v2/templates/layout.html +++ b/v2/templates/layout.html @@ -6,6 +6,7 @@ {% block title %}{% endblock %} + {% block metadata %}{% endblock %} {% block body %}{% endblock %} diff --git a/v2/templates/page.html b/v2/templates/page.html index 957d285..d4b36dc 100644 --- a/v2/templates/page.html +++ b/v2/templates/page.html @@ -2,6 +2,16 @@ {% block title %}{{ page.title }} - {{ config.title }}{% endblock %} +{% block metadata %} + + + + + + + +{% endblock %} + {% block body %}

👨‍💻 {{ config.title }}