mirror of
https://github.com/falsycat/ar.falsy.cat.git
synced 2024-12-26 00:14:51 +00:00
made link preview optional
This commit is contained in:
parent
4a3c4fdef5
commit
e49a1ac9db
@ -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.
|
||||||
|
@ -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')
|
||||||
@ -26,4 +27,5 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
{{end}}
|
Loading…
Reference in New Issue
Block a user