mirror of
https://github.com/13hannes11/hugo-coder-timeline.git
synced 2024-09-04 00:50:58 +02:00
add support for utteranc.es (#205)
This commit is contained in:
committed by
Luiz F. A. de Prá
parent
dea81ca434
commit
9b47893b34
9
layouts/partials/posts/utteranc.html
Normal file
9
layouts/partials/posts/utteranc.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{{- if and (isset .Site.Params.utteranc "repo") (not (eq .Site.Params.utteranc.repo "" )) (eq (.Params.disable_comments | default false) false) -}}
|
||||
<script src="https://utteranc.es/client.js"
|
||||
repo= "{{ .Site.Params.utteranc.repo }}"
|
||||
issue-term="{{ default "title" .Site.Params.utteranc.issueTerm }}"
|
||||
theme="{{ default "github-light" .Site.Params.utteranc.theme }}"
|
||||
crossorigin="anonymous"
|
||||
async>
|
||||
</script>
|
||||
{{- end -}}
|
||||
Reference in New Issue
Block a user