From: Rico Hoppe Date: Wed, 29 May 2024 13:32:00 +0000 (+0000) Subject: blog/index, write: use ogp module X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=817abdb078be4db064f4cbcba41eefe44e5dd606;p=ipfire.org.git blog/index, write: use ogp module Signed-off-by: Rico Hoppe --- diff --git a/src/templates/blog/index.html b/src/templates/blog/index.html index 1eae27bd..262f4d03 100644 --- a/src/templates/blog/index.html +++ b/src/templates/blog/index.html @@ -3,23 +3,10 @@ {% block title %}{{ _("Welcome!") }}{% end block %} {% block head %} - - - - - - - - - - - - - - - - - + {% module OpenGraph( + title=_("IPFire Blog"), + description="The IPFire Blog has the latest news from the IPFire Project about Development, Current Affairs, and many more interesting things.", + ) %} diff --git a/src/templates/blog/write.html b/src/templates/blog/write.html index 0708068a..048f90ac 100644 --- a/src/templates/blog/write.html +++ b/src/templates/blog/write.html @@ -10,39 +10,15 @@ {% block head %} {% if post %} - - - - - - - - - - - - - - - - + {% module OpenGraph( + title={{ _("IPFire Blog - Edit %s") % post.title }}, + description="Edit unpublished Blog Post {{ post.title }}", + ) %} {% else %} - - - - - - - - - - - - - - - - + {% module OpenGraph( + title={{ _("IPFire Blog - Write A New Post") }}, + description="Write A New Post for the IPFire Blog", + ) %} {% end %} {% end block %}