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