]> git.ipfire.org Git - ipfire.org.git/commitdiff
docs/404, recent-changes, revisions, search-results, tree: use ogp
authorRico Hoppe <rico.hoppe@ipfire.org>
Wed, 29 May 2024 14:00:27 +0000 (14:00 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Jun 2024 14:05:10 +0000 (14:05 +0000)
module

Signed-off-by: Rico Hoppe <rico.hoppe@ipfire.org>
src/templates/docs/404.html
src/templates/docs/recent-changes.html
src/templates/docs/revisions.html
src/templates/docs/search-results.html
src/templates/docs/tree.html

index b821b3d7fb10d9d9c814cef359b9bbe755844266..dec3f3ac2b6f015163b428408ba39682acea019c 100644 (file)
@@ -3,22 +3,10 @@
 {% block title %}{{ _("Page Not Found") }}{% end block %}
 
 {% block head %}
-    <!-- HTML Meta Tags -->
-    <meta name="description" content={{ _("IPFire Documentation - Page Not Found") }}>
-    <!-- Facebook Meta Tags -->
-    <meta property="og:url" content="https://www.ipfire.org/docs/404">
-    <meta property="og:type" content="website">
-    <meta property="og:title" content="Create This Page Now - IPFire">
-    <meta property="og:description" content="This page does not yet exist. You can create it now!">
-    <meta property="og:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}">
-
-    <!-- Twitter Meta Tags -->
-    <meta name="twitter:card" content="summary_large_image">
-    <meta property="twitter:domain" content="ipfire.org">
-    <meta property="twitter:url" content="https://www.ipfire.org/docs/404">
-    <meta name="twitter:title" content="www.ipfire.org - Create This Page Now">
-    <meta name="twitter:description" content="This page does not yet exist. You can create it now!">
-    <meta name="twitter:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}">
+    {% module OpenGraph(
+        title=_("IPFire Documentation - Page Not Found"),
+        description="This page does not yet exist. You can create it now!",
+    ) %}
 {% end block %}
 
 {% block container %}
index 80cee186f05ca4f3747c93b6837d290c23be350a..e1688b8e259d31b2a59ffff38393df403c1b850d 100644 (file)
@@ -3,22 +3,10 @@
 {% block title %}{{ _("Recent Changes") }}{% end block %}
 
 {% block head %}
-    <!-- HTML Meta Tags -->
-    <meta name="description" content={{ _("IPFire Documentation - Recent Changes") }}>
-    <!-- Facebook Meta Tags -->
-    <meta property="og:url" content="https://www.ipfire.org/docs/recent-changes">
-    <meta property="og:type" content="website">
-    <meta property="og:title" content="Recent Changes - IPFire">
-    <meta property="og:description" content="Overview all Recent Changes within our Documentation">
-    <meta property="og:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}">
-
-    <!-- Twitter Meta Tags -->
-    <meta name="twitter:card" content="summary_large_image">
-    <meta property="twitter:domain" content="ipfire.org">
-    <meta property="twitter:url" content="https://www.ipfire.org/docs/recent-changes">
-    <meta name="twitter:title" content="www.ipfire.org - Recent Changes">
-    <meta name="twitter:description" content="Overview all Recent Changes within our Documentation">
-    <meta name="twitter:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}">
+       {% module OpenGraph(
+               title=_("IPFire Documentation - Recent Changes"),
+               description="Overview all Recent Changes within our Documentation",
+       ) %}
 {% end block %}
 
 {% block container %}
index 01765f3d0bcdb084524326b34b4948c6d8d113d5..9a766092792b8fdecfd189b9bdc4dbd3b2936041 100644 (file)
@@ -3,22 +3,10 @@
 {% block title %}{{ _("Revisions of %s") % page.title }}{% end block %}
 
 {% block head %}
-    <!-- HTML Meta Tags -->
-    <meta name="description" content={{ _("IPFire Documentation - Revivions of %s") % page.title }}>
-    <!-- Facebook Meta Tags -->
-    <meta property="og:url" content="{{ page.full_url }}?action=revisions">
-    <meta property="og:type" content="website">
-    <meta property="og:title" content="{{ page.title }} - IPFire">
-    <meta property="og:description" content="{{ _("See Revisions of %s") % page.title }}">
-    <meta property="og:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}">
-
-    <!-- Twitter Meta Tags -->
-    <meta name="twitter:card" content="summary_large_image">
-    <meta property="twitter:domain" content="ipfire.org">
-    <meta property="twitter:url" content="{{ page.full_url }}?action=revisions">
-    <meta name="twitter:title" content="www.ipfire.org - {{ page.title }}">
-    <meta name="twitter:description" content="{{ _("See Revisions of %s") % page.title }}">
-    <meta name="twitter:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}">
+    {% module OpenGraph(
+        title={{ _("IPFire Documentation - Revivions of %s") % page.title }},
+        description={{ _("See Revisions of %s") % page.title }},
+    ) %}
 {% end block %}
 
 {% block main %}
index d6cb0d8d3a9cab4fc960974511e0b2d93cbe8f42..3c7ba1548c46f82b9d2167cb026cb8559f1ebac6 100644 (file)
@@ -3,22 +3,10 @@
 {% block title %}{{ _("Search results for '%s'") % q }}{% end block %}
 
 {% block head %}
-    <!-- HTML Meta Tags -->
-    <meta name="description" content={{ _("IPFire Documentation - Search: '%s'") % q }}>
-    <!-- Facebook Meta Tags -->
-    <meta property="og:url" content={{ "https://www.ipfire.org/docs/search?q=%s" % q}}>
-    <meta property="og:type" content="website">
-    <meta property="og:title" content={{ _("Searching for: '%s' - IPFire") % q }}>
-    <meta property="og:description" content={{ _("Search Results for '%s'") % q }}>
-    <meta property="og:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}">
-
-    <!-- Twitter Meta Tags -->
-    <meta name="twitter:card" content="summary_large_image">
-    <meta property="twitter:domain" content="ipfire.org">
-    <meta property="twitter:url" content={{ "https://www.ipfire.org/docs/search?q=%s" % q}}>
-    <meta name="twitter:title" content={{ _("www.ipfire.org - Searching for: '%s'") % q }}>
-    <meta name="twitter:description" content={{ _("Search Results for '%s'") % q }}>
-    <meta name="twitter:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}">
+       {% module OpenGraph(
+               title={{ _("IPFire Documentation - Search: '%s'") % q }},
+               description={{ _("Search Results for '%s'") % q }},
+       ) %}
 {% end block %}
 
 {% block container %}
index 15228ce3125cee296bc1f92fc871e431ededab87..152b50dbc5367a1b3096d61f751f1b886ea9a40c 100644 (file)
@@ -3,22 +3,10 @@
 {% block title %}{{ _("Tree") }}{% end block %}
 
 {% block head %}
-    <!-- HTML Meta Tags -->
-    <meta name="description" content={{ _("IPFire Documentation - Tree") }}>
-    <!-- Facebook Meta Tags -->
-    <meta property="og:url" content="https://www.ipfire.org/docs/tree">
-    <meta property="og:type" content="website">
-    <meta property="og:title" content="Tree - IPFire Documentation">
-    <meta property="og:description" content="View a list of all pages, well structured in a tree">
-    <meta property="og:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}">
-
-    <!-- Twitter Meta Tags -->
-    <meta name="twitter:card" content="summary_large_image">
-    <meta property="twitter:domain" content="ipfire.org">
-    <meta property="twitter:url" content="https://www.ipfire.org/docs/tree">
-    <meta name="twitter:title" content="www.ipfire.org - Tree">
-    <meta name="twitter:description" content="View a list of all pages, well structured in a tree">
-    <meta name="twitter:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}">
+       {% module OpenGraph(
+               title=_("IPFire Documentation - Tree"),
+               description="View a list of all pages, well structured in a tree",
+       ) %}
 {% end block %}
 
 {% block container %}