2021-04-26 12:27:44 -04:00
|
|
|
{{- with .Site.Params.comments.vssue -}}
|
|
|
|
<link rel="stylesheet" href="https://unpkg.com/vssue/dist/vssue.min.css" />
|
|
|
|
|
|
|
|
<div id="vssue"></div>
|
|
|
|
|
2022-03-19 19:52:06 -04:00
|
|
|
<script src="https://unpkg.com/vue@2/dist/vue.runtime.min.js"></script>
|
2021-04-26 12:27:44 -04:00
|
|
|
<script src="https://unpkg.com/vssue/dist/vssue.{{ .platform }}.min.js"></script>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
new Vue({
|
|
|
|
el: "#vssue",
|
|
|
|
render: (h) =>
|
|
|
|
h("Vssue", {
|
|
|
|
props: {
|
|
|
|
title: "{{ $.Title }}",
|
|
|
|
options: {
|
2021-07-07 07:18:05 -04:00
|
|
|
autoCreateIssue: {{ default false .autoCreateIssue }},
|
2021-04-26 12:27:44 -04:00
|
|
|
owner: "{{ .owner }}",
|
|
|
|
repo: "{{ .repo }}",
|
|
|
|
clientId: "{{ .clientId }}",
|
|
|
|
clientSecret: "{{ .clientSecret }}",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{{- end -}}
|