hexo-theme-solitude 1.4.2 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/CONTRIBUTING.md +1 -1
  2. package/README.md +1 -1
  3. package/README_EN.md +1 -1
  4. package/_config.yml +13 -3
  5. package/languages/en-US.yml +31 -2
  6. package/languages/zh-CN.yml +32 -2
  7. package/languages/zh-TW.yml +147 -0
  8. package/layout/includes/footer.pug +1 -1
  9. package/layout/includes/head/config.pug +15 -2
  10. package/layout/includes/inject/body.pug +12 -4
  11. package/layout/includes/layout.pug +4 -0
  12. package/layout/includes/page/album.pug +4 -21
  13. package/layout/includes/page/music.pug +1 -4
  14. package/layout/includes/page/says.pug +1 -3
  15. package/layout/includes/widgets/home/bb/json.pug +2 -1
  16. package/layout/includes/widgets/home/bb/local.pug +2 -3
  17. package/layout/includes/widgets/home/bb/memos.pug +2 -1
  18. package/layout/includes/widgets/page/about/authorinfo.pug +1 -1
  19. package/layout/includes/widgets/page/about/hobbies.pug +2 -2
  20. package/layout/includes/widgets/page/about/motto.pug +17 -15
  21. package/layout/includes/widgets/page/about/skillsinfo.pug +38 -36
  22. package/layout/includes/widgets/page/about/tenyear.pug +1 -1
  23. package/layout/includes/widgets/page/says/json.pug +3 -3
  24. package/layout/includes/widgets/page/says/local.pug +1 -1
  25. package/layout/includes/widgets/rightside/index.pug +33 -22
  26. package/package.json +1 -1
  27. package/plugins.yml +6 -2
  28. package/scripts/event/cdn.js +5 -0
  29. package/scripts/event/init.js +18 -19
  30. package/scripts/event/page.js +0 -5
  31. package/scripts/filter/checkThemeConfig.js +23 -7
  32. package/scripts/helper/related_post.js +0 -6
  33. package/scripts/helper/stylus.js +8 -3
  34. package/source/css/_layout/index.styl +54 -34
  35. package/source/css/_page/about/index.styl +26 -16
  36. package/source/css/_page/gallery/index.styl +11 -8
  37. package/source/css/_widgets/_comment/twikoo.styl +1 -1
  38. package/source/js/rightside.js +159 -342
  39. package/source/js/tw_cn.js +76 -0
  40. package/layout/includes/page/not_configured.pug +0 -18
  41. package/scripts/helper/cdn.js +0 -12
@@ -1,18 +0,0 @@
1
- style.
2
- .not-configured {
3
- display: flex;
4
- justify-content: center;
5
- font-size: 18px;
6
- font-weight: bold;
7
- height: 80vh;
8
- align-items: center
9
- }
10
- .not-configured strong {
11
- padding: 0 4px;
12
- border-bottom: 2px dotted var(--sco-lighttext)
13
- }
14
-
15
- .not-configured
16
- .title 请前往
17
- strong 主题配置文件
18
- | 进行配置
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- hexo.extend.helper.register('cdn_url_for', function(path) {
4
- const {config, theme} = this
5
- const cdnPrefix = theme.cdn.prefix;
6
- const urlFor = hexo.extend.helper.get('url_for').bind(this);
7
- if (cdnPrefix) {
8
- return cdnPrefix + urlFor(path);
9
- } else {
10
- return urlFor(path);
11
- }
12
- });