fix: broken comment

This commit is contained in:
CDN 2023-05-06 09:25:56 +08:00
parent 677808fa3d
commit ba601cc9d9
Signed by: cdn0x12
GPG key ID: CF7D420E4A155266

View file

@ -69,15 +69,15 @@
<!-- Artalk -->
{{ if eq .Site.Params.comment.provider "artalk" }}
{{ with .Site.Params.comment.artalk }}
<link href="{{ $.Site.Params.artalk.server }}/dist/Artalk.css" rel="stylesheet">
<script src="{{ $.Site.Params.artalk.server }}/dist/Artalk.js"></script>
<link href="{{ $.Site.Params.comment.artalk.server }}/dist/Artalk.css" rel="stylesheet">
<script src="{{ $.Site.Params.comment.artalk.server }}/dist/Artalk.js"></script>
<script>
Artalk.init({
el: '#comment',
pageKey: '{{ .Permalink }}',
pageTitle: '{{ .Title }}',
server: '{{ $.Site.Params.artalk.server }}',
site: '{{ $.Site.Params.artalk.site }}',
server: '{{ $.Site.Params.comment.artalk.server }}',
site: '{{ $.Site.Params.comment.artalk.site }}',
})
</script>
{{ end }}