From 750ff9a602bb785f1356e87cc8e81f55618e55c7 Mon Sep 17 00:00:00 2001
From: Carmine Carlo <3340751717@qq.com>
Date: Mon, 17 Jan 2022 15:08:53 +0000
Subject: [PATCH] Add jsdelivr to scriptsrc for Katex (#636)

---
 exampleSite/config.toml |    7 ++++++-
 CONTRIBUTORS.md         |    1 +
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
index 3ece1e1..05b8a39 100644
--- a/CONTRIBUTORS.md
+++ b/CONTRIBUTORS.md
@@ -105,3 +105,4 @@
 - [Michael Weiss](https://mweiss.ch)
 - [Simon Pai](https://github.com/simonpai)
 - [Brenton Mallen](https://github.com/brentonmallen1)
+- [Xiaoyang Luo](https://github.com/ccviolett/)
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
index 0bdec2f..2039858 100644
--- a/exampleSite/config.toml
+++ b/exampleSite/config.toml
@@ -82,7 +82,12 @@
   "https://fonts.googleapis.com/",
   "https://cdn.jsdelivr.net/"
 ]
-scriptsrc = ["'self'", "'unsafe-inline'", "https://www.google-analytics.com"]
+scriptsrc = [
+  "'self'", 
+  "'unsafe-inline'", 
+  "https://www.google-analytics.com",
+  "https://cdn.jsdelivr.net/"
+]
 prefetchsrc = ["'self'"]
 # connect-src directive – defines valid targets for to XMLHttpRequest (AJAX), WebSockets or EventSource
 connectsrc = ["'self'", "https://www.google-analytics.com"]

--
Gitblit v1.10.0