]> git.ipfire.org Git - ipfire.org.git/commitdiff
docs/search-results: add ogp metadata
authorRico Hoppe <rico.hoppe@ipfire.org>
Thu, 4 Apr 2024 16:55:05 +0000 (16:55 +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/search-results.html

index cb276761a3bba794e920841930ae28ce40dbca2a..2c219a49cc81caaec050131242a21db855439730 100644 (file)
@@ -2,6 +2,25 @@
 
 {% 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="{{ page.title }} - IPFire">
+    <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 - {{ page.title }}">
+    <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") }}">
+{% end block %}
+
 {% block container %}
        <section class="hero is-light">
                <div class="hero-body">
@@ -36,7 +55,7 @@
                                </div>
                        {% end %}
 
-                       {% module DocsList(pages, show_author=False) %}
+                       {% module DocsList(pages, show_breadcrumbs=True, show_author=False) %}
                </div>
        </section>
 {% end block %}