]> git.ipfire.org Git - ipfire.org.git/commitdiff
location/*: use ogp module
authorRico Hoppe <rico.hoppe@ipfire.org>
Wed, 29 May 2024 14:55:18 +0000 (14:55 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Jun 2024 14:05:30 +0000 (14:05 +0000)
Signed-off-by: Rico Hoppe <rico.hoppe@ipfire.org>
src/templates/location/index.html
src/templates/location/lookup.html

index 12bfff7b42b224b7f87e95d78f065e1e84fd043e..0e55de3abcee2405921abb189f1688c1360f9a04 100644 (file)
@@ -1,22 +1,10 @@
 {% extends "../base.html" %}
 
 {% block head %}
-    <!-- HTML Meta Tags -->
-    <meta name="description" content="{{ _("IPFire Location") }}">
-    <!-- Facebook Meta Tags -->
-    <meta property="og:url" content="https://www.ipfire.org/location">
-    <meta property="og:type" content="website">
-    <meta property="og:title" content="{{ page.title }} - IPFire">
-    <meta property="og:description" content={{ _("A powerful location database to find people on the Internet") }}>
-    <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/location">
-    <meta name="twitter:title" content="www.ipfire.org - {{ page.title }}">
-    <meta name="twitter:description" content={{ _("A powerful location database to find people on the Internet") }}>
-    <meta name="twitter:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}">
+       {% module OpenGraph(
+               title=_("IPFire Location"),
+               description="A powerful location database to find people on the Internet",
+       ) %}
 {% end block %}
 
 {% block title %}{{ _("Welcome to IPFire Location") }}{% end block %}
index 631348b423c6475ff4d3f4e09df02fd5b2e2519a..1473d02e46ced30cb3a86d32282ec7715678f644 100644 (file)
@@ -3,22 +3,10 @@
 {% block title %}{{ _("Location of %s") % address }}{% end block %}
 
 {% block head %}
-    <!-- HTML Meta Tags -->
-    <meta name="description" content="{{ _("IPFire - Location of %s") % address }}">
-    <!-- Facebook Meta Tags -->
-    <meta property="og:url" content="https://www.ipfire.org/location/lookup/{{ address }}">
-    <meta property="og:type" content="website">
-    <meta property="og:title" content="{{ page.title }} - IPFire">
-    <meta property="og:description" content={{ _("Location Data of %s") % address }}>
-    <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/location/lookup/{{ address }}">
-    <meta name="twitter:title" content="www.ipfire.org - {{ page.title }}">
-    <meta name="twitter:description" content={{ _("Location Data of %s") % address }}>
-    <meta name="twitter:image" content="https://www.ipfire.org/{{ static_url("img/ipfire-tux.png") }}">
+       {% module OpenGraph(
+               title=_("IPFire Location - Lookup %s") % address,
+               description="Location Data of %s" % address,
+       ) %}
 {% end block %}
 
 {% block container %}