made link preview optional
This commit is contained in:
parent
4a3c4fdef5
commit
e49a1ac9db
2 changed files with 4 additions and 1 deletions
|
@ -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}}
|
Loading…
Add table
Add a link
Reference in a new issue