Welcome to mirror list, hosted at ThFree Co, Russian Federation.

utterances.html « comments « partials « layouts - github.com/MunifTanjim/minimo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bed3196cb835432e7e0b650c155ede486db4ff57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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>