Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hexo-theme-shokax

Package Overview
Dependencies
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-theme-shokax - npm Package Compare versions

Comparing version 0.0.1-alpha4 to 0.0.1-alpha5

2

package.json
{
"name": "hexo-theme-shokax",
"version": "0.0.1-alpha4",
"version": "0.0.1-alpha5",
"description": "a hexo theme based on shoka",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -7,4 +7,5 @@ # hexo-theme-shokaX

此项目是shoka的一个魔改版,致力于提高性能和优化魔改体验 \
本项目处于高强度开发期,但github仓库版本已基本可用 \s
此项目是shoka的一个二次开发版(算精神续作),致力于提高性能和优化魔改体验 \
诞生原因是目前shoka已经两年没有更新了,积压了大量BUG和功能请求。\
本项目处于高强度开发期,但github仓库版本已基本可用 \
二次开发与常见问题请看wiki

@@ -23,10 +24,15 @@

## 已于从shoka迁移吗?
很容易,只需要调整shoka的部分配置,并重新安装渲染器就行
## 和shoka的区别
原先shoka使用了javascript+Native+nunjucks的技术 \
而shokaX则使用了typescript+Vue 3+Pug的技术搭配 \
图标库可能会更换为Font Awesome 6 \
更改了大量难以访问的CDN链接
## 以前的魔改呢?
这个比较难解决,因为shokaX对编写语言进行了更改:
- javascript -> typescript
- njk -> pug
因此需要更改编写的语言
## 如何安装?
建议使用[ShokaX-CLI](https://github.com/zkz098/shokaX-CLI) ,执行下列命令即可:
```bash
npm i shokax-cli --location=global
# hexo init 初始化环境
SXC install shokaX
```

@@ -33,0 +39,0 @@ # 许可证

@@ -38,3 +38,3 @@ 'use strict'

if (data.images && data.images.length > 6) {
if (data.images && data.images.length >= 6) {
hexo.theme.config.image_list = data.images

@@ -41,0 +41,0 @@ } else {

@@ -64,6 +64,14 @@ /* global hexo */

['library', 'global', 'page', 'vue', 'components'].forEach(function (item) {
text += fs.readFileSync(`themes/shokaX/source/js/_app/${item}.js`).toString()
if (fs.existsSync(`themes/shokaX/source/js/_app/${item}.js`)) {
text += fs.readFileSync(`themes/shokaX/source/js/_app/${item}.js`).toString()
} else {
text += fs.readFileSync(`node_modules/hexo-theme-shokax/source/js/_app/${item}.js`).toString()
}
})
if (!theme.experiments?.noPlayer) {
text += fs.readFileSync('themes/shokaX/source/js/_app/player.js').toString()
if (fs.existsSync('themes/shokaX/source/js/_app/player.js')) {
text += fs.readFileSync('themes/shokaX/source/js/_app/player.js').toString()
} else {
text += fs.readFileSync('node_modules/hexo-theme-shokax/source/js/_app/player.js').toString()
}
}

@@ -70,0 +78,0 @@ if (theme.fireworks && theme.fireworks.enable) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc