From: Michael Tremer Date: Thu, 23 Jan 2020 12:25:40 +0000 (+0000) Subject: blog: Add meta tags for OpenGraph & Twitter X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4203b8c0eaeb722f0ffe9d0b82b907aace2a43cf;p=ipfire.org.git blog: Add meta tags for OpenGraph & Twitter Those tags will be read by Facebook, Twitter and other software like Discourse to show a short summary about the content behind the link. Signed-off-by: Michael Tremer --- diff --git a/src/templates/blog/base.html b/src/templates/blog/base.html index d06dbf3a..723d7024 100644 --- a/src/templates/blog/base.html +++ b/src/templates/blog/base.html @@ -2,6 +2,7 @@ {% block head %} + {% block meta %}{% end block %} {% end block %} {% block content %} diff --git a/src/templates/blog/post.html b/src/templates/blog/post.html index 4532880e..54a3eb78 100644 --- a/src/templates/blog/post.html +++ b/src/templates/blog/post.html @@ -2,6 +2,36 @@ {% block title %}{{ post.title }}{% end block %} +{% block meta %} + {% import ipfire.accounts as accounts %} + + + + + + + + + + + + {% if isinstance(post.author, accounts.Account) %} + + + + {% end %} + {% for tag in post.tags %} + + {% end %} + + + + + + + +{% end block %} + {% block main %}