From 668a1a0684b56854068946316b7f7f54af4b563f Mon Sep 17 00:00:00 2001 From: exu Date: Wed, 18 Sep 2024 13:36:28 +0200 Subject: [PATCH] Try alternative include for tntsearch --- themes/learn2-dark/templates/search.html.twig | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/themes/learn2-dark/templates/search.html.twig b/themes/learn2-dark/templates/search.html.twig index 51ccadd..a325a72 100644 --- a/themes/learn2-dark/templates/search.html.twig +++ b/themes/learn2-dark/templates/search.html.twig @@ -1,7 +1,11 @@ -{% extends 'partials/base.html.twig' %} +{% embed 'partials/base.html.twig' with { github_link_position: false } %} -{% block content %} - {{ page.content|raw }} + {% block content %} + {{ page.content|raw }} - {% embed 'partials/tntsearch.html.twig' with { limit: 10, snippet: 150, min: 3, search_type: 'auto', dropdown: true } %}{% endembed %} -{% endblock %} \ No newline at end of file + {% include 'partials/tntsearch.html.twig' with { in_page: true, placeholder: "Search the Grav documentation..." }%} + {% endblock %} + + {% block footer %}{% endblock %} + +{% endembed %} \ No newline at end of file