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:
parent
4df4f7f8db
commit
0f6b170e24
4 changed files with 2 additions and 8 deletions
|
@ -60,6 +60,3 @@ polyfill:
|
||||||
|
|
||||||
mathjax:
|
mathjax:
|
||||||
js: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js
|
js: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js
|
||||||
|
|
||||||
utterances:
|
|
||||||
js: https://utteranc.es/client.js
|
|
||||||
|
|
|
@ -49,6 +49,3 @@ polyfill:
|
||||||
|
|
||||||
mathjax:
|
mathjax:
|
||||||
js: /assets/lib/mathjax-3.2.0/tex-chtml.js
|
js: /assets/lib/mathjax-3.2.0/tex-chtml.js
|
||||||
|
|
||||||
utterances:
|
|
||||||
js: /assets/lib/utterances/client.js
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<!-- https://utteranc.es/ -->
|
<!-- https://utteranc.es/ -->
|
||||||
<script src="{{ site.data.assets[origin].utterances.js }}"
|
<script src="https://utteranc.es/client.js"
|
||||||
repo="{{ site.comments.utterances.repo }}"
|
repo="{{ site.comments.utterances.repo }}"
|
||||||
issue-term="{{ site.comments.utterances.issue_term }}"
|
issue-term="{{ site.comments.utterances.issue_term }}"
|
||||||
crossorigin="anonymous"
|
crossorigin="anonymous"
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit b6fc13661fe0ed5fea228596a9641c4554879117
|
Subproject commit d1d2ec17c88176753d4dd2a1296620021dcc22fd
|
Loading…
Reference in a new issue