1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-12-18 05:41:31 +00:00

Use constants to define resources for utterances

Self-host the JS for `utterances` is not necessary, because the list of comments cannot be loaded if the network is offline.
This commit is contained in:
Cotes Chung
2022-02-12 05:34:41 +08:00
parent 4df4f7f8db
commit 0f6b170e24
4 changed files with 2 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
<!-- https://utteranc.es/ -->
<script src="{{ site.data.assets[origin].utterances.js }}"
<script src="https://utteranc.es/client.js"
repo="{{ site.comments.utterances.repo }}"
issue-term="{{ site.comments.utterances.issue_term }}"
crossorigin="anonymous"