From 99aea4826068564f81e7f1b402e00e3e101a1476 Mon Sep 17 00:00:00 2001
From: Jacky Zhao <j.zhao2k19@gmail.com>
Date: Tue, 04 Jan 2022 16:39:22 +0000
Subject: [PATCH] docs update

---
 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