]> git.ipfire.org Git - ipfire.org.git/commitdiff
docs/404: add ogp metadata
authorRico Hoppe <rico.hoppe@ipfire.org>
Thu, 4 Apr 2024 16:52:31 +0000 (16:52 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Jun 2024 14:04:05 +0000 (14:04 +0000)
Signed-off-by: Rico Hoppe <rico.hoppe@ipfire.org>
src/templates/docs/404.html

index 8860c31b6a67c9c0ba620234add5ad9e99a8eaad..4e9daa94122d2ec1d2eed46a4841eb3b830d1ad5 100644 (file)
@@ -2,6 +2,25 @@
 
 {% 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="{{ page.title }} - 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 - {{ page.title }}">
+    <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") }}">
+{% end block %}
+
 {% block container %}
     {% import os.path %}
 
@@ -21,4 +40,4 @@
                        </div>
                </div>
        </section>
-{% end block %}
\ No newline at end of file
+{% end block %}