From 0f6b170e2406c085034dd1087bf57a74f645f7f6 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat, 12 Feb 2022 05:34:41 +0800 Subject: [PATCH] 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. --- _data/assets/cross_origin.yml | 3 --- _data/assets/self_host.yml | 3 --- _includes/comments/utterances.html | 2 +- assets/lib | 2 +- 4 files changed, 2 insertions(+), 8 deletions(-) diff --git a/_data/assets/cross_origin.yml b/_data/assets/cross_origin.yml index 4fda9bc..13e37cf 100644 --- a/_data/assets/cross_origin.yml +++ b/_data/assets/cross_origin.yml @@ -60,6 +60,3 @@ polyfill: mathjax: js: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js - -utterances: - js: https://utteranc.es/client.js diff --git a/_data/assets/self_host.yml b/_data/assets/self_host.yml index 3d662d6..ae5a399 100644 --- a/_data/assets/self_host.yml +++ b/_data/assets/self_host.yml @@ -49,6 +49,3 @@ polyfill: mathjax: js: /assets/lib/mathjax-3.2.0/tex-chtml.js - -utterances: - js: /assets/lib/utterances/client.js diff --git a/_includes/comments/utterances.html b/_includes/comments/utterances.html index 3b6303e..afd7cd3 100644 --- a/_includes/comments/utterances.html +++ b/_includes/comments/utterances.html @@ -1,5 +1,5 @@ -