From 2564ee218940575152bad23b7ba78703420dd195 Mon Sep 17 00:00:00 2001
From: Eric Schneider <37347760+eric-schneider@users.noreply.github.com>
Date: Mon, 22 Apr 2024 18:27:48 -0700
Subject: [PATCH 1/2] Replace Algolia config values with playbook variables
---
src/partials/body-end-scripts.hbs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/partials/body-end-scripts.hbs b/src/partials/body-end-scripts.hbs
index 3b44294a..714b769b 100644
--- a/src/partials/body-end-scripts.hbs
+++ b/src/partials/body-end-scripts.hbs
@@ -7,10 +7,10 @@
{{> intercom}}
From a00b12f2e75dbe8e52ff135e6d9bbe6a62f05e35 Mon Sep 17 00:00:00 2001
From: Eric Schneider <37347760+eric-schneider@users.noreply.github.com>
Date: Mon, 22 Apr 2024 18:52:18 -0700
Subject: [PATCH 2/2] Conditionally load the DocsSearch script
---
src/partials/body-end-scripts.hbs | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/src/partials/body-end-scripts.hbs b/src/partials/body-end-scripts.hbs
index 714b769b..b8bdae4f 100644
--- a/src/partials/body-end-scripts.hbs
+++ b/src/partials/body-end-scripts.hbs
@@ -4,13 +4,17 @@
+{{#with site.keys}}
+ {{#if (and algoliaAppId algoliaIndexName algoliaApiKey)}}
+ {{/if}}
+{{/with}}
{{> intercom}}