From d8ecc230791f4e9946b16a6825d78366f3574d45 Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Fri, 28 Oct 2022 00:00:29 +0100 Subject: [PATCH] create 'server' variable (for search) in page and search templates. This variable contains the URL for the Meilisearch instance this site calls out to. It is grabbed from this site's database and passed to the Djula templates providing Meilisearch-based features. The 'server' variable is called here so it's easy for the dev. to see how and when it's called. --- templates/page.html | 5 +++++ templates/search.html | 11 ++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/templates/page.html b/templates/page.html index dc089c9..5a54c15 100644 --- a/templates/page.html +++ b/templates/page.html @@ -59,6 +59,11 @@ {{data | safe}} + + diff --git a/templates/search.html b/templates/search.html index 2e06fa0..17948f2 100644 --- a/templates/search.html +++ b/templates/search.html @@ -3,7 +3,7 @@ {% block content %}
-
+
@@ -25,10 +25,15 @@
- - + +
+ +