Skip to content

Commit

Permalink
security: remove bad mirrors
Browse files Browse the repository at this point in the history
  • Loading branch information
Young-Lord committed Jul 10, 2024
1 parent aa3e110 commit b5b6909
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 30 deletions.
42 changes: 15 additions & 27 deletions _data/variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ default:
chart: false
toc:
selectors: 'h1,h2,h3'
sources: bootcdn
sources: bytedance
copy_to_clipboard: true

page:
Expand Down Expand Up @@ -42,33 +42,21 @@ default:
pan_gu_zhi_bai: true

sources:
bootcdn:
bytedance:
font_awesome: 'https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/font-awesome/5.15.1/css/all.min.css'
# https://cdn.bytedance.com/?query=font-awesome&version=5.15.1
jquery: 'https://cdn.bootcss.com/jquery/3.1.1/jquery.min.js'
leancloud_js_sdk: '//cdn.jsdelivr.net/npm/[email protected]/dist/av-min.js'
chart: 'https://cdn.bootcss.com/Chart.js/2.7.2/Chart.bundle.min.js'
jquery: 'https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/3.1.1/jquery.min.js'
leancloud_js_sdk: ''
chart: 'https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/Chart.js/2.7.2/Chart.bundle.min.js'
gitalk:
js: 'https://cdn.bootcss.com/gitalk/1.2.2/gitalk.min.js'
css: 'https://cdn.bootcss.com/gitalk/1.2.2/gitalk.min.css'
valine: 'https://unpkg.com/valine/dist/Valine.min.js' # bootcdn not available
mathjax: 'https://cdn.bootcss.com/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_CHTML'
mermaid: 'https://cdn.bootcss.com/mermaid/8.0.0-rc.8/mermaid.min.js'
clipboard: 'https://cdn.bootcdn.net/ajax/libs/clipboard.js/2.0.11/clipboard.js'
js: ''
css: ''
valine: ''
mathjax: 'https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/mathjax/2.7.4/config/TeX-MML-AM_CHTML.js'
mermaid: 'https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/mermaid/8.0.0/mermaid.min.js'
clipboard: 'https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/clipboard.js/2.0.10/clipboard.min.js'
# custom.html
sweetalert2: 'https://cdn.bootcdn.net/ajax/libs/sweetalert2/11.7.3/sweetalert2.all.min.js'
pinyin_pro: 'https://cdn.bootcdn.net/ajax/libs/pinyin-pro/3.16.6/index.js'
unpkg:
font_awesome: 'https://use.fontawesome.com/releases/v5.15.1/css/all.css'
jquery: 'https://unpkg.com/[email protected]/dist/jquery.min.js'
leancloud_js_sdk: '//cdn.jsdelivr.net/npm/[email protected]/dist/av-min.js'
chart: 'https://unpkg.com/[email protected]/dist/Chart.min.js'
gitalk:
js: 'https://unpkg.com/[email protected]/dist/gitalk.min.js'
css: 'https://unpkg.com/[email protected]/dist/gitalk.css'
valine: 'https//unpkg.com/valine/dist/Valine.min.js'
mathjax: 'https://unpkg.com/[email protected]/unpacked/MathJax.js?config=TeX-MML-AM_CHTML'
mermaid: 'https://unpkg.com/[email protected]/dist/mermaid.min.js'
clipboard: 'https://unpkg.com/clipboard@2/dist/clipboard.min.js'
sweetalert2: 'https://cdn.bootcdn.net/ajax/libs/sweetalert2/11.7.3/sweetalert2.all.min.js'
pinyin_pro: 'https://cdn.bootcdn.net/ajax/libs/pinyin-pro/3.16.6/index.js'
sweetalert2: 'https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/sweetalert2/11.7.3/sweetalert2.all.min.js'
pinyin_pro: 'https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/pinyin-pro/3.16.6/index.js'
twitter_bootstrap_js: 'https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/twitter-bootstrap/5.2.3/js/bootstrap.bundle.min.js'
twitter_bootstrap_css: 'https://mirrors.sustech.edu.cn/cdnjs/ajax/libs/twitter-bootstrap/5.2.3/css/bootstrap.min.css'
6 changes: 3 additions & 3 deletions _includes/head/custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
{%- include snippets/get-sources.html -%}
{%- assign _sources = __return -%}

<link rel="preload" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.2.3/css/bootstrap.min.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.2.3/css/bootstrap.min.css"></noscript>
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.2.3/js/bootstrap.bundle.min.js" defer async></script>
<link rel="preload" href="{{ _sources.twitter_bootstrap_css }}" as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript><link rel="stylesheet" href="{{ _sources.twitter_bootstrap_css }}"></noscript>
<script src="{{ _sources.twitter_bootstrap_js }}" defer async></script>
<script src="{{ _sources.sweetalert2 }}" defer async></script>
<script src="{{ _sources.pinyin_pro }}" defer async></script>
<link rel="stylesheet" href="/assets/css/lanyon/poole.min.css">
Expand Down

0 comments on commit b5b6909

Please sign in to comment.