Add post: 暗黑能天使
This commit is contained in:
14
layouts/partials/comment/valine.html
Normal file
14
layouts/partials/comment/valine.html
Normal file
@@ -0,0 +1,14 @@
|
||||
<div id="valine-comments" class="mt-4"></div>
|
||||
{{- $assets := .Site.Data.assets }}
|
||||
<script defer src="{{ printf $assets.valine.js.url $assets.valine.version }}" {{ with $assets.valine.js.sri }}
|
||||
integrity="{{ . }}" {{ end }} crossorigin></script>
|
||||
{{- with .Site.Params.comment.valine }}
|
||||
<script>
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
new Valine({
|
||||
el: "#valine-comments",
|
||||
{{- partial "utils/get-js-configs" . | safeJS }}
|
||||
})
|
||||
});
|
||||
</script>
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user