From e49a1ac9db92c6c967be404b5a3b9e3194a4ed99 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Mon, 03 Jan 2022 18:22:04 +0000
Subject: [PATCH] made link preview optional

---
 layouts/partials/popover.html |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/layouts/partials/popover.html b/layouts/partials/popover.html
index d9cc941..afcf4c5 100644
--- a/layouts/partials/popover.html
+++ b/layouts/partials/popover.html
@@ -1,3 +1,4 @@
+{{if $.Site.Data.config.enableLinkPreview}}
 <script>
   function htmlToElement(html) {
     const template = document.createElement('template')
@@ -26,4 +27,5 @@
         }
       })
   })
-</script>
\ No newline at end of file
+</script>
+{{end}}
\ No newline at end of file

--
Gitblit v1.10.0