integrate artalk
This commit is contained in:
parent
73fb08026e
commit
11af0db9a2
1 changed files with 17 additions and 0 deletions
|
@ -65,3 +65,20 @@
|
|||
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