Skip to content

Commit

Permalink
Merge pull request #348 from everfu/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
everfu authored Jul 30, 2024
2 parents 41d58b4 + b7d33ad commit 3315cb7
Show file tree
Hide file tree
Showing 36 changed files with 45 additions and 1,317 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ Check out the [Documentation](https://solitude.js.org/) for more information.

## License

[MIT](./LICENSE) License © 2023-PRESENT [Ever Fu](https://github.com/everfu)
[MIT](./LICENSE) License © 2023-PRESENT [Ever Fu](https://github.com/everfu)
2 changes: 1 addition & 1 deletion README_zh-Hant.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@

## 版權

[MIT](./LICENSE) License © 2023-至今 [Efu](https://github.com/everfu)
[MIT](./LICENSE) License © 2023-至今 [Efu](https://github.com/everfu)
8 changes: 4 additions & 4 deletions layout/includes/inject/body.pug
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ div
script(src=url_for(theme.cdn.waterfall))
script(src=url_for(theme.cdn.pjax))

if theme.mermaid
script(src=url_for(theme.cdn.mermaid_js))

if theme.post.share.enable && theme.post.share.list && theme.post.share.list.includes('qrcode')
script(src=url_for(theme.cdn.qrcode))

if theme.mermaid
script(src=url_for(theme.cdn.mermaid_js))

if theme.display_mode.universe
script(src=url_for(theme.cdn.universe_js))
script.
Expand Down Expand Up @@ -115,4 +115,4 @@ if theme.footer.randomlink
include ../body/mode

// google adsense
include ../body/gadsense
include ../body/gadsense
16 changes: 14 additions & 2 deletions layout/includes/loading.pug
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,34 @@ div(id="loading-box" onclick="preloader.endLoading();" style="zoom:1")

script.
const preloader = {
isLoaded: false,
endLoading: () => {
document.getElementById('loading-box').classList.toggle('loaded');
if (!preloader.isLoaded) {
document.getElementById('loading-box').classList.add('loaded');
preloader.isLoaded = true;
}
},
initLoading: () => {
document.getElementById('loading-box').classList.remove('loaded');
preloader.isLoaded = false;
},
removePaceDone: () => {
document.getElementById('body').classList = 'pace-done';
}
}

window.addEventListener('load', () => {
preloader.endLoading();
});

window.addEventListener('pjax:send', () => {
preloader.initLoading();
});

document.addEventListener('pjax:complete', () => {
preloader.endLoading();
});
});

setTimeout(() => {
preloader.endLoading();
}, 5000);
13 changes: 8 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-theme-solitude",
"version": "2.0.4",
"version": "2.0.5",
"description": "A beautiful, powerful, and efficient Hexo theme developed by EverFu.",
"main": "package.json",
"scripts": {
Expand All @@ -19,14 +19,17 @@
"url": "https://github.com/everfu/hexo-theme-solitude"
},
"dependencies": {
"hexo-renderer-stylus": "^3.0.0",
"hexo-renderer-pug": "^3.0.0"
"hexo-renderer-pug": "^3.0.0",
"hexo-renderer-stylus": "^3.0.0"
},
"bugs": {
"url": "https://github.com/everfu/hexo-theme-solitude/issues",
"email": "[email protected]"
},
"homepage": "https://everfu.github.io/Solitude/",
"author": "Hexo-Theme-Solitude<[email protected]>",
"license": "MIT"
}
"license": "MIT",
"devDependencies": {
"@types/node": "^22.0.0"
}
}
2 changes: 1 addition & 1 deletion scripts/helper/stylus.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ hexo.extend.filter.register('stylus:renderer', function (style) {
style.define('$prismjs_enable', prismjsEnable)
style.define('$prismjs_line_number', prismjsLineNumber)
style.define('$language', config.language)
});
});
35 changes: 0 additions & 35 deletions scripts/tags/btns.js

This file was deleted.

21 changes: 0 additions & 21 deletions scripts/tags/button.js

This file was deleted.

7 changes: 0 additions & 7 deletions scripts/tags/bvideo.js

This file was deleted.

51 changes: 0 additions & 51 deletions scripts/tags/checkbox.js

This file was deleted.

13 changes: 0 additions & 13 deletions scripts/tags/fold.js

This file was deleted.

75 changes: 0 additions & 75 deletions scripts/tags/image.js

This file was deleted.

12 changes: 0 additions & 12 deletions scripts/tags/inline-image.js

This file was deleted.

10 changes: 0 additions & 10 deletions scripts/tags/label.js

This file was deleted.

Loading

0 comments on commit 3315cb7

Please sign in to comment.