From 355d8c9b13cb58b32e6883d96491a43fd6f860c7 Mon Sep 17 00:00:00 2001 From: yvling Date: Thu, 23 Jan 2025 16:45:21 +0800 Subject: [PATCH] fix: Adjust CDN service provider --- templates/default/assets/css/global.css | 2 +- templates/default/assets/css/lib/meplayer.css | 10 ++++---- templates/default/assets/js/global.js | 4 ++-- templates/default/assets/js/lib/meplayer.js | 2 +- templates/default/html/about.html | 22 ++++++++--------- templates/default/html/archive.html | 20 ++++++++-------- templates/default/html/category.html | 18 +++++++------- templates/default/html/friend.html | 22 ++++++++--------- templates/default/html/index.html | 22 ++++++++--------- templates/default/html/music.html | 24 +++++++++---------- templates/default/html/post.html | 22 ++++++++--------- templates/default/html/search.html | 20 ++++++++-------- templates/default/html/tag.html | 22 ++++++++--------- 13 files changed, 105 insertions(+), 105 deletions(-) diff --git a/templates/default/assets/css/global.css b/templates/default/assets/css/global.css index a29348f..069bb07 100644 --- a/templates/default/assets/css/global.css +++ b/templates/default/assets/css/global.css @@ -32,7 +32,7 @@ @font-face { font-family: 'fusion-pixel'; - src: url('https://molly-blog.cdn.yvling.cn/assets/css/webfonts/fusion-pixel-10px-monospaced-zh_hans.woff2') format('woff2'); + src: url('https://yvling-cdn-1257337367.cos.ap-nanjing.myqcloud.com/MollyBlog/assets/css/webfonts/fusion-pixel-10px-monospaced-zh_hans.woff2') format('woff2'); font-weight: normal; font-style: normal; } diff --git a/templates/default/assets/css/lib/meplayer.css b/templates/default/assets/css/lib/meplayer.css index 1f65ecb..633db88 100644 --- a/templates/default/assets/css/lib/meplayer.css +++ b/templates/default/assets/css/lib/meplayer.css @@ -2,11 +2,11 @@ font-weight: normal; font-style: normal; font-family: 'fontello'; - src: url('../../https://molly-blog.cdn.yvling.cn/assets/css/webfonts/fontello.eot?77128880'); - src: url('../../https://molly-blog.cdn.yvling.cn/assets/css/webfonts/fontello.eot?77128880#iefix') format('embedded-opentype'), - url('../../https://molly-blog.cdn.yvling.cn/assets/css/webfonts/fontello.woff?77128880') format('woff'), - url('../../https://molly-blog.cdn.yvling.cn/assets/css/webfonts/fontello.ttf?77128880') format('truetype'), - url('../../https://molly-blog.cdn.yvling.cn/assets/css/webfonts/fontello.svg?77128880#fontello') format('svg'); + src: url('https://yvling-cdn-1257337367.cos.ap-nanjing.myqcloud.com/MollyBlog/assets/css/webfonts/fontello.eot?77128880'); + src: url('https://yvling-cdn-1257337367.cos.ap-nanjing.myqcloud.com/MollyBlog/assets/css/webfonts/fontello.eot?77128880#iefix') format('embedded-opentype'), + url('https://yvling-cdn-1257337367.cos.ap-nanjing.myqcloud.com/MollyBlog/assets/css/webfonts/fontello.woff?77128880') format('woff'), + url('https://yvling-cdn-1257337367.cos.ap-nanjing.myqcloud.com/MollyBlog/assets/css/webfonts/fontello.ttf?77128880') format('truetype'), + url('https://yvling-cdn-1257337367.cos.ap-nanjing.myqcloud.com/MollyBlog/assets/css/webfonts/fontello.svg?77128880#fontello') format('svg'); } .meplayer-container { diff --git a/templates/default/assets/js/global.js b/templates/default/assets/js/global.js index af213b5..3aa563a 100644 --- a/templates/default/assets/js/global.js +++ b/templates/default/assets/js/global.js @@ -40,7 +40,7 @@ function setTheme() { const logo = document.querySelector(".main-logo-img") if (logo !== null) { - logo.style.setProperty("background-image", `url(https://molly-blog.cdn.yvling.cn/assets/img/logo-${theme}-theme.png)`); + logo.style.setProperty("background-image", `url(https://yvling-cdn-1257337367.cos.ap-nanjing.myqcloud.com/MollyBlog/assets/img/logo-${theme}-theme.png)`); } } @@ -57,7 +57,7 @@ function replaceCssFile() { const links = document.querySelectorAll('link[rel="stylesheet"]'); for (const link of links) { if (link.href.includes(oldHref)) { - link.href = "https://molly-blog.cdn.yvling.cn/assets/css/lib/" + newHref; + link.href = "https://yvling-cdn-1257337367.cos.ap-nanjing.myqcloud.com/MollyBlog/assets/css/lib/" + newHref; break; } } diff --git a/templates/default/assets/js/lib/meplayer.js b/templates/default/assets/js/lib/meplayer.js index 18704b9..bf202c9 100644 --- a/templates/default/assets/js/lib/meplayer.js +++ b/templates/default/assets/js/lib/meplayer.js @@ -131,7 +131,7 @@ var musicConf = options.music, target = selector.$(options.target) || document.querySelector('.meplayer'), theme = options.theme || _constants.THEME_DEFAULT, hasLrc = !!musicConf.lrc, - coverSrc = musicConf.cover || '../../https://molly-blog.cdn.yvling.cn/assets/img/music.png', loop = musicConf.loop || false, + coverSrc = musicConf.cover || '../../https://yvling-cdn-1257337367.cos.ap-nanjing.myqcloud.com/MollyBlog/assets/img/music.png', loop = musicConf.loop || false, autoplay = options.autoplay, currentThemeClass = theme === _constants.THEME_DEFAULT ? 'meplayer-container' : 'meplayer-container-mini', containerClass = currentThemeClass + ' ' + (hasLrc ? 'meplayer-haslrc' : '') + ' meplayer-isloading'; diff --git a/templates/default/html/about.html b/templates/default/html/about.html index 0b88273..27a3fba 100644 --- a/templates/default/html/about.html +++ b/templates/default/html/about.html @@ -6,17 +6,17 @@ {{ .site_info.title }} | {{ .about.title }} - - - - - - + + + + + + - - - - + + + + {{ if .statistics.enable }} @@ -77,7 +77,7 @@ - + diff --git a/templates/default/html/archive.html b/templates/default/html/archive.html index b84fefa..a240a0c 100644 --- a/templates/default/html/archive.html +++ b/templates/default/html/archive.html @@ -6,15 +6,15 @@ {{ .site_info.title }} | {{ .history_post.title }} - - - - - + + + + + - - - + + + {{ if .statistics.enable }} @@ -123,8 +123,8 @@ - - + + diff --git a/templates/default/html/category.html b/templates/default/html/category.html index 362d2c4..b40aeef 100644 --- a/templates/default/html/category.html +++ b/templates/default/html/category.html @@ -6,15 +6,15 @@ {{ .site_info.title }} - - - - - + + + + + - - - + + + {{ if .statistics.enable }} @@ -114,7 +114,7 @@ - + diff --git a/templates/default/html/friend.html b/templates/default/html/friend.html index 6f00cfc..bd1981e 100644 --- a/templates/default/html/friend.html +++ b/templates/default/html/friend.html @@ -6,17 +6,17 @@ {{ .site_info.title }} | {{ .friend.title }} - - - - - - + + + + + + - - - - + + + + {{ if .statistics.enable }} @@ -90,7 +90,7 @@ - + - - - + + + + {{ if .statistics.enable }} @@ -126,8 +126,8 @@ - - + + diff --git a/templates/default/html/music.html b/templates/default/html/music.html index 5f02e7b..e00d859 100644 --- a/templates/default/html/music.html +++ b/templates/default/html/music.html @@ -6,17 +6,17 @@ {{ .site_info.title }} - - - - - - + + + + + + - - - - + + + + {{ if .statistics.enable }} @@ -89,8 +89,8 @@
- - + + diff --git a/templates/default/html/post.html b/templates/default/html/post.html index e33b069..7407656 100644 --- a/templates/default/html/post.html +++ b/templates/default/html/post.html @@ -6,16 +6,16 @@ {{ .site_info.title }} - - - - - - + + + + + + - - - + + + {{ if .statistics.enable }} @@ -137,8 +137,8 @@ - - + + diff --git a/templates/default/html/search.html b/templates/default/html/search.html index 5070bda..6eea3f7 100644 --- a/templates/default/html/search.html +++ b/templates/default/html/search.html @@ -6,15 +6,15 @@ {{ .site_info.title }} - - - - - + + + + + - - - + + + {{ if .statistics.enable }} @@ -121,8 +121,8 @@ - - + + diff --git a/templates/default/html/tag.html b/templates/default/html/tag.html index a2adb13..2a759b7 100644 --- a/templates/default/html/tag.html +++ b/templates/default/html/tag.html @@ -6,16 +6,16 @@ {{ .site_info.title }} - - - - - + + + + + - - - - + + + + {{ if .statistics.enable }} @@ -105,11 +105,11 @@ - + - +