From: Rico Hoppe Date: Wed, 29 May 2024 14:01:14 +0000 (+0000) Subject: docs/files/*: use ogp module X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28ed01150e9fe5150bfca32adee6f8a4b7ad9147;p=ipfire.org.git docs/files/*: use ogp module Signed-off-by: Rico Hoppe --- diff --git a/src/templates/docs/files/detail.html b/src/templates/docs/files/detail.html index 4fd4f438..d71594a8 100644 --- a/src/templates/docs/files/detail.html +++ b/src/templates/docs/files/detail.html @@ -3,22 +3,10 @@ {% block title %}{{ file.filename }}{% end block %} {% block head %} - HTML Meta Tags - - Facebook Meta Tags - - - - - - - Twitter Meta Tags - - - - - - + {% module OpenGraph( + title={{ _("IPFire Documentation - {{ file.filename }}") }}, + description="View a file uploaded by {{ file.author }} at {{ locale.format_date(file.created_at) }}", + ) %} {% end block %} {% block main %} diff --git a/src/templates/docs/files/index.html b/src/templates/docs/files/index.html index 56bbd8b4..0b1f3af8 100644 --- a/src/templates/docs/files/index.html +++ b/src/templates/docs/files/index.html @@ -3,22 +3,10 @@ {% block title %}{{ _("Files") }}{% end block %} {% block head %} - HTML Meta Tags - - Facebook Meta Tags - - - - - - - Twitter Meta Tags - - - - - - + {% module OpenGraph( + title={{ _("IPFire Documentation - {{ file.filename }}") }}, + description="The File Management System of the IPFire Documentation", + ) %} {% end block %} {% block main %}