From d261655d96f9ed084a176ed113b0d11f1351c6de Mon Sep 17 00:00:00 2001
From: DhammaCharts <100090806+DhammaCharts@users.noreply.github.com>
Date: Thu, 02 Jun 2022 06:49:09 +0000
Subject: [PATCH] remove unnecessary ternary

---
 layouts/partials/head.html |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 01b8fe8..b56c291 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -66,7 +66,7 @@
       const siteBaseURL = new URL({{$.Site.BaseURL}});
       const pathBase = siteBaseURL.pathname;
       const pathWindow = window.location.pathname;
-      const isHome = pathBase == pathWindow ? true : false;
+      const isHome = pathBase == pathWindow;
 
       // NOTE: everything within this callback will be executed for every page navigation. This is a good place to put JavaScript that loads or modifies data on the page.
       {{if $.Site.Data.config.enableFooter}}

--
Gitblit v1.10.0