made link preview optional

This commit is contained in:
Jacky Zhao 2022-01-03 13:22:04 -05:00
parent 671fe795b2
commit e8327048bd
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
name: Jacky Zhao name: Jacky Zhao
enableToc: true enableToc: true
enableLinkPreview: true
description: description:
Here is the page description. This is an example Quartz site that details installation, Here is the page description. This is an example Quartz site that details installation,
setup, customization, and troubleshooting for Quartz itself. setup, customization, and troubleshooting for Quartz itself.

View File

@ -1,3 +1,4 @@
{{if $.Site.Data.config.enableLinkPreview}}
<script> <script>
function htmlToElement(html) { function htmlToElement(html) {
const template = document.createElement('template') const template = document.createElement('template')
@ -27,3 +28,4 @@
}) })
}) })
</script> </script>
{{end}}