From e49a1ac9db92c6c967be404b5a3b9e3194a4ed99 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Mon, 3 Jan 2022 13:22:04 -0500 Subject: [PATCH] made link preview optional --- data/config.yaml | 1 + layouts/partials/popover.html | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/data/config.yaml b/data/config.yaml index 0ebe801..5759ab2 100644 --- a/data/config.yaml +++ b/data/config.yaml @@ -1,5 +1,6 @@ name: Jacky Zhao enableToc: true +enableLinkPreview: true description: Here is the page description. This is an example Quartz site that details installation, setup, customization, and troubleshooting for Quartz itself. 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}} \ No newline at end of file + +{{end}} \ No newline at end of file