mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-07 00:58:13 +00:00
Switch themes to minimo
This commit is contained in:
19
themes/minimo/layouts/partials/comments/utterances.html
Normal file
19
themes/minimo/layouts/partials/comments/utterances.html
Normal file
@@ -0,0 +1,19 @@
|
||||
{{- $scriptSrc := "https://utteranc.es/client.js" -}}
|
||||
|
||||
{{- $issueTerm := .Page.Site.Params.comments.utterances.issueTerm -}}
|
||||
{{- $label := .Page.Site.Params.comments.utterances.label -}}
|
||||
{{- $theme := .Page.Site.Params.comments.utterances.theme -}}
|
||||
{{- $username := .Page.Site.Params.comments.utterances.github.username -}}
|
||||
{{- $repository := .Page.Site.Params.comments.utterances.github.repository -}}
|
||||
|
||||
<script src='{{ $scriptSrc }}'
|
||||
repo='{{ print $username "/" $repository }}'
|
||||
issue-term='{{ $issueTerm }}'
|
||||
{{ if $label -}}
|
||||
label='{{ $label }}'
|
||||
{{- end }}
|
||||
{{ if $theme -}}
|
||||
theme='{{ $theme }}'
|
||||
{{- end }}
|
||||
crossorigin='anonymous' async>
|
||||
</script>
|
Reference in New Issue
Block a user