aboutsummaryrefslogtreecommitdiff
path: root/themes/hugo-theme-stack/layouts/partials/comments/provider/vssue.html
diff options
context:
space:
mode:
Diffstat (limited to 'themes/hugo-theme-stack/layouts/partials/comments/provider/vssue.html')
-rw-r--r--themes/hugo-theme-stack/layouts/partials/comments/provider/vssue.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/themes/hugo-theme-stack/layouts/partials/comments/provider/vssue.html b/themes/hugo-theme-stack/layouts/partials/comments/provider/vssue.html
new file mode 100644
index 0000000..79ac381
--- /dev/null
+++ b/themes/hugo-theme-stack/layouts/partials/comments/provider/vssue.html
@@ -0,0 +1,27 @@
+{{- with .Site.Params.comments.vssue -}}
+<link rel="stylesheet" href="https://unpkg.com/vssue/dist/vssue.min.css" />
+
+<div id="vssue"></div>
+
+<script src="https://unpkg.com/vue@2/dist/vue.runtime.min.js"></script>
+<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: {
+ autoCreateIssue: {{ default false .autoCreateIssue }},
+ owner: "{{ .owner }}",
+ repo: "{{ .repo }}",
+ clientId: "{{ .clientId }}",
+ clientSecret: "{{ .clientSecret }}",
+ },
+ },
+ }),
+ });
+</script>
+{{- end -}}