gittalk config Fixed

This commit is contained in:
Cookiekira 2021-09-12 20:58:39 +08:00
parent a004050c3b
commit f1e16cea59
5 changed files with 5 additions and 5 deletions

BIN
.DS_Store vendored

Binary file not shown.

BIN
layouts/.DS_Store vendored

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -5,11 +5,11 @@
<script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script> <script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
<script> <script>
const gitalk = new Gitalk({ const gitalk = new Gitalk({
clientID: '{{ .clientID }}', clientID: '{{- .clientID -}}',
clientSecret: '{{ .clientSecret }}', clientSecret: '{{- .clientSecret -}}',
repo: '{{ .Gitalk.repo }}', repo: '{{- .Gitalk.repo -}}',
owner: '{{ .owner }}', owner: '{{- .owner -}}',
admin: ['{{ .owner }}'], admin: ['{{- .owner -}}'],
id: location.pathname, // Ensure uniqueness and length less than 50 id: location.pathname, // Ensure uniqueness and length less than 50
distractionFreeMode: false // Facebook-like distraction free mode distractionFreeMode: false // Facebook-like distraction free mode
}); });