Skip to content

Commit

Permalink
feat: 切换到字节静态CDN(cdn.bytedance.com)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tokinx authored Jul 22, 2024
1 parent 64b5efc commit 73c6a2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ function biji_enqueue_scripts() {
// 禁用jQuery
wp_deregister_script( 'jquery' );
// 咱们的主题使用Vue
wp_enqueue_script( 'vue', '//cdn.staticfile.net/vue/2.6.14/vue.min.js', [], THEME_VERSION, true );
wp_enqueue_script( 'vue', '//lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/vue/2.6.14/vue.min.js', [], THEME_VERSION, true );
// 开启代码高亮
if ( get_theme_mod( 'biji_setting_prettify', true ) ) {
wp_enqueue_script( 'prettify', '//cdn.staticfile.net/prettify/r298/prettify.js', [], THEME_VERSION, true );
wp_enqueue_script( 'prettify', '//lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/prettify/r298/prettify.min.js', [], THEME_VERSION, true );
}
wp_enqueue_script( 'helper', get_template_directory_uri() . '/static/helper.js', [], THEME_VERSION, false );
wp_enqueue_script( 'package', get_template_directory_uri() . '/static/package.js', [], THEME_VERSION, false );
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Description: Simple, smooth, data-driven, responsive WordPress theme
Author: Tokin
Author URI: https://biji.io
Version: 0.8.4
Version: 0.8.5
Tested up to: 5.9.3
Requires at least: 5.8
Requires PHP: 7.0
Expand Down

0 comments on commit 73c6a2b

Please sign in to comment.