integrate artalk
This commit is contained in:
parent
73fb08026e
commit
11af0db9a2
1 changed files with 17 additions and 0 deletions
|
@ -64,4 +64,21 @@
|
|||
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by
|
||||
Disqus.</a></noscript>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
<!-- 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>
|
||||
<script>
|
||||
Artalk.init({
|
||||
el: '#comment',
|
||||
pageKey: '{{ .Permalink }}',
|
||||
pageTitle: '{{ .Title }}',
|
||||
server: '{{ $.Site.Params.artalk.server }}',
|
||||
site: '{{ $.Site.Params.artalk.site }}',
|
||||
})
|
||||
</script>
|
||||
{{ end }}
|
||||
{{ end }}
|
Loading…
Reference in a new issue