Skip to content

Commit

Permalink
fix: use new npm pkg name for cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
ArcticLampyrid committed May 21, 2022
1 parent 11f47f8 commit bedf870
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
一只移植的主题,兼具亮暗双主题,身负多种小挂件,短能卡片列首页,长能文章读更多,退可罗列全归档,进可搜索全文章,相关介绍可以参见[主题说明](https://candinya.com/posts/Kratos-Rebirth/)页面哦~

[![构建版本](https://img.shields.io/github/v/release/Candinya/Kratos-Rebirth)](https://github.com/Candinya/Kratos-Rebirth/releases/latest)
[![npm版本](https://img.shields.io/npm/v/kratos-rebirth?color=red&logo=npm)](https://www.npmjs.com/package/kratos-rebirth)
[![npm版本](https://img.shields.io/npm/v/hexo-theme-kratos-rebirth?color=red&logo=npm)](https://www.npmjs.com/package/hexo-theme-kratos-rebirth)
[![样例站点部署状态](https://github.com/Candinya/Kratos-Rebirth/workflows/Build%20Demo%20Site/badge.svg)](https://kr-demo.candinya.com/)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.ghproxy.top%2FCandinya%2FKratos-Rebirth.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.ghproxy.top%2FCandinya%2FKratos-Rebirth?ref=badge_shield)

Expand Down
2 changes: 1 addition & 1 deletion scripts/lib/cdn.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const npmCDNHandler = (defaultRoot, cdnConfig, cdnSuffix = '') => {

module.exports = {
url_cdn: (locals, file) => {
return npmCDNHandler(locals.config.root, locals.theme.config.cdn, `kratos-rebirth@${version}/source/`) + file;
return npmCDNHandler(locals.config.root, locals.theme.config.cdn, `hexo-theme-kratos-rebirth@${version}/source/`) + file;
},
url_npm_cdn: (locals, file) => {
return npmCDNHandler('https://unpkg.com/', locals.theme.config.cdn) + file;
Expand Down
Loading

0 comments on commit bedf870

Please sign in to comment.