]> git.ipfire.org Git - ipfire.org.git/commitdiff
location: add ogp metadata to all pages
authorRico Hoppe <rico.hoppe@ipfire.org>
Fri, 10 May 2024 19:32:26 +0000 (19:32 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Jun 2024 14:05:07 +0000 (14:05 +0000)
* download, how-to-use, index, lookup

Signed-off-by: Rico Hoppe <rico.hoppe@ipfire.org>
src/templates/location/index.html
src/templates/location/lookup.html

index 4eb4a9c3208f4e14169d7baf7c7948bb2746044b..12bfff7b42b224b7f87e95d78f065e1e84fd043e 100644 (file)
@@ -1,7 +1,22 @@
 {% extends "../base.html" %}
 
 {% block head %}
-       <meta name="description" content="{{ _("A powerful location database to find people on the Internet") }}" />
+    <!-- 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") }}">
 {% end block %}
 
 {% block title %}{{ _("Welcome to IPFire Location") }}{% end block %}
index 0a1a5a47732ac792c508a0e383894c34bae8c009..631348b423c6475ff4d3f4e09df02fd5b2e2519a 100644 (file)
@@ -2,6 +2,25 @@
 
 {% 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") }}">
+{% end block %}
+
 {% block container %}
        <section class="hero is-primary">
                <div class="hero-body">