mirror of
				https://github.com/ZetaKebab/quartz.git
				synced 2025-11-03 22:49:47 +00:00 
			
		
		
		
	made link preview optional
This commit is contained in:
		@@ -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.
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +1,4 @@
 | 
			
		||||
{{if $.Site.Data.config.enableLinkPreview}}
 | 
			
		||||
<script>
 | 
			
		||||
  function htmlToElement(html) {
 | 
			
		||||
    const template = document.createElement('template')
 | 
			
		||||
@@ -26,4 +27,5 @@
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
  })
 | 
			
		||||
</script>
 | 
			
		||||
</script>
 | 
			
		||||
{{end}}
 | 
			
		||||
		Reference in New Issue
	
	Block a user