hexo-theme-solitude 1.5.2 → 1.5.4

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.
@@ -1,6 +1,6 @@
1
1
  # These are supported funding model platforms
2
2
 
3
- github: [wleelw] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
3
+ github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4
4
  patreon: # Replace with a single Patreon username
5
5
  open_collective: # Replace with a single Open Collective username
6
6
  ko_fi: # Replace with a single Ko-fi username
@@ -10,4 +10,4 @@ liberapay: # Replace with a single Liberapay username
10
10
  issuehunt: # Replace with a single IssueHunt username
11
11
  otechie: # Replace with a single Otechie username
12
12
  lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13
- custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13
+ custom: ['https://afdian.net/a/efu0u0','https://7.isyangs.cn/34/65f2e5814db1a-34.png','https://7.isyangs.cn/34/65ed434e0b8d7-34.png'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
@@ -0,0 +1,13 @@
1
+ <svg width="230.246382px" height="528.14px" viewBox="0 0 230.246382 528.14" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
2
+ <g transform="translate(-226, -116)" fill="#ffffff">
3
+ <g transform="translate(226, 116)">
4
+ <path d="M57.45,507.17 C87.47,434.44 230.61,428.18 164.36,316.39 C212.12,434.18 9.66,435.54 36.6,528.14 C17.62,500.02 25.38,462.49 52.37,442.85 C75.91,424.74 107.39,421.7 130.58,402.53 C171.31,374.92 166.56,325.05 133.62,293.12 C132.68,292.18 131.28,291.3 130.01,291.17 C119.53,290.08 109.04,289.05 98.53,288.24 C79.12,286.75 60.28,288.9 42.67,297.89 C37.86,300.34 33.03,302.08 27.6,300.14 C33.72,298.92 39.79,297.68 44.87,293.88 C44.79,293.56 44.72,293.24 44.64,292.92 C41.32,293.46 38.49,294.75 34.98,294.61 C52.95,282.27 33.41,281.35 22.36,283.36 C60.84,254.97 50.11,209.81 117.04,223.24 C139.92,175.21 157.05,197.72 184.56,168.99 C179.89,182.55 173.44,195.52 167.6,208.66 C161.44,224.1 147.53,226.31 133.23,229.81 C138.31,228.28 140.3,231.71 142.79,234.8 C178.23,276.79 218.08,323.74 215.23,382.21 C203.29,447.16 91.81,452.67 57.45,507.17 L57.45,507.17 Z M98.73,237.9 C84.56,245.85 62.06,243.13 65.36,266.34 C72.8,249.43 82.85,269.83 98.73,237.9 L98.73,237.9 Z"></path>
5
+ <path d="M103.24,292.22 C145.96,290.35 154.28,363.26 122.46,383.67 C75.04,415.94 -15.57,451.75 26.56,523.99 C26.33,524.2 26.11,524.4 25.88,524.61 C-15.13,490.92 3.46,427.39 41.47,399.45 C75.34,371.1 137.8,345.29 103.24,292.22 Z"></path>
6
+ <path d="M180.53,61.39 C193.55,71.71 205.68,82.95 214.14,98.2 C235.91,61.72 209.58,23.4 181.1,1.42108547e-14 C225.16,22.33 250.67,81.66 209.34,121.31 C183.34,150.9 113.9,176.15 113.94,217.67 L95.83,217.67 C97.99,174.23 143.39,172.05 127.65,156.15 C117.75,141.99 113.4,126.39 114.33,108.12 C128.05,176.8 164.52,145.45 199.59,112.86 C211.65,96.64 189.69,74.44 180.53,61.4 L180.53,61.39 Z"></path>
7
+ <path d="M85.9,78.04 C59.55,88.09 25.27,104.68 32.74,138.16 C42.5,137.44 52.22,136.73 61.94,136.01 C62,136.43 62.07,136.84 62.13,137.26 C26.33,142.58 40.67,154.56 60.06,170.78 C76.17,181.91 90.18,139.63 98.01,129.66 C93.29,140.64 88.5,151.59 83.89,162.61 C80.13,172.92 74.04,181.5 84.12,190.32 C90.76,198.2 93.17,207.28 91.84,217.64 C86.92,218.82 81.9,220.02 76.85,221.22 C83.3,186.96 61.25,189.69 40.71,170.75 C-2.36,130.04 36.14,81.84 85.9,78.04 Z"></path>
8
+ <path d="M0.01,197.73 C23.76,225.14 49.6,200.73 64.2,227.4 C56.81,232.31 51.62,239.03 48,246.92 C29.16,243.37 12.18,223.59 0,197.74 L0.01,197.73 Z"></path>
9
+ <path d="M39.77,287.74 C34.98,288.66 32.59,293.58 28.57,295.68 C22.5,295.98 16.89,294.03 15.98,287.06 C23.86,286.49 31.01,285.98 38.16,285.46 L39.77,287.73 L39.77,287.74 Z"></path>
10
+ <path d="M90.51,244.92 C82.85,248.24 72.72,246.39 69.03,256.91 C77.44,255 86.24,254.41 90.51,244.92 Z" id="路径"></path>
11
+ </g>
12
+ </g>
13
+ </svg>
Binary file
@@ -0,0 +1,19 @@
1
+ name: 'Close stale issues and PRs'
2
+ on:
3
+ schedule:
4
+ - cron: '30 1 * * *'
5
+
6
+ jobs:
7
+ stale:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/stale@v5
11
+ with:
12
+ days-before-issue-stale: 30
13
+ days-before-pr-stale: -1
14
+ days-before-close: 7
15
+ stale-issue-message: 'This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.'
16
+ close-pr-message: 'This issue has not seen any activity since it was marked stale. Closing.'
17
+ stale-issue-label: 'Stale'
18
+ exempt-issue-labels: 'pinned,bug,enhancement,documentation,Plan'
19
+ operations-per-run: 1000
@@ -0,0 +1,128 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or
31
+ advances of any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ o@efu.me.
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series
86
+ of actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or
93
+ permanent ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within
113
+ the community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.0, available at
119
+ https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
+
121
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
+ enforcement ladder](https://github.com/mozilla/diversity).
123
+
124
+ [homepage]: https://www.contributor-covenant.org
125
+
126
+ For answers to common questions about this code of conduct, see the FAQ at
127
+ https://www.contributor-covenant.org/faq. Translations are available at
128
+ https://www.contributor-covenant.org/translations.
package/README.md CHANGED
@@ -1,91 +1,61 @@
1
- <div align="right">
2
- <a title="English" href="/README_EN.md">English</a>
3
- </div>
4
-
5
- ## Hexo-Theme-Solitude
6
-
7
- ![main version](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/master?color=%231ab1ad&label=main)
8
- ![dev version](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/dev?label=dev)
9
- ![https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff](https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff)
10
- ![hexo version](https://img.shields.io/badge/hexo-6.3.0+-0e83c)
11
- [![GitHub all releases](https://img.shields.io/github/downloads/valor-x/hexo-theme-solitude/total)](https://github.com/valor-x/hexo-theme-solitude/releases/latest)
12
- ![hexo version](https://img.shields.io/badge/hexo-6.3.0+-0e83c)
13
- ![license](https://img.shields.io/github/license/valor-x/hexo-theme-solitude?color=FF5531)
14
-
15
- ![首页](https://github.com/valor-x/hexo-theme-solitude/assets/74389842/d008aba4-942d-4fdb-a611-d934c0bad9fe)
1
+ 简体中文丨[繁体中文](README_zh-tw.md)丨[English](README_EN.md)
16
2
 
17
- 主题预览: ✨ [亦封](https://blog.meuicat.cn/) | 🐞 [Demo](https://solitude-demo.efu.me/)
3
+ <div align="center">
18
4
 
19
- 主题文档: [中文](https://solitude-docs.efu.me/)
5
+ <img src=".github/logo.svg" alt="Solitude logo" height="200">
20
6
 
21
- ## 💻 安裝
7
+ <h1 align="center">Hexo Theme Solitude</h1>
22
8
 
23
- ### Git 安裝
9
+ <p align="center">一款优雅的 Hexo 主题,支持懒加载、PWA、Latex以及多种评论系统。</p>
24
10
 
25
- > 本仓库同时上传到 [Gitee](https://gitee.com/nsjjd_w/hexo-theme-solitude),如果你访问 Github 缓慢,可从 Gitee 中下载。
26
-
27
- 在博客根目录里安装稳定版【推荐】
28
-
29
- ```powershell
30
- git clone -b main https://github.com/valor-x/hexo-theme-solitude.git themes/solitude
31
- ```
32
-
33
- 如果想要安装比较新的 dev 分支,可以在博客根目录里安装开发版
34
-
35
- ```powershell
36
- git clone -b dev https://github.com/valor-x/hexo-theme-solitude.git themes/solitude
37
- ```
11
+ ![release](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/master?color=%231ab1ad&label=release)
12
+ ![https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff](https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff)
13
+ ![license](https://img.shields.io/github/license/valor-x/hexo-theme-solitude?color=FF5531)
14
+ ![hexo version](https://img.shields.io/badge/hexo-6.3.0+-0e83c)
15
+ [![Stars](https://img.shields.io/github/stars/valor-x/hexo-theme-solitude)](https://github.com/valor-x/hexo-theme-solitude/stargazers)
16
+ [![GitHub all releases](https://img.shields.io/github/downloads/valor-x/hexo-theme-solitude/total)](https://github.com/valor-x/hexo-theme-solitude/releases/latest)
38
17
 
39
- ### NPM 安装
18
+ [预览](https://solitude-demo.efu.me/) 丨 [文档](https://solitude-docs.efu.me/)
40
19
 
41
- > 此方法只支持 Hexo 5.0.0 以上版本。通过 npm 安装并不会在 themes 里生成主题文件夹,而是在 node_modules 里生成
20
+ </div>
42
21
 
43
- 在博客根目录里执行:
22
+ ![Screenshot](.github/screenshot.png)
44
23
 
45
- ```powershell
46
- npm install hexo-theme-solitude
47
- ```
24
+ ## 特性
48
25
 
49
- ## ⚙ 应用主题
26
+ - 页面懒加载(Pjax)、图片懒加载(LazyLoad)、离线应用(PWA)
27
+ - 评论(Twikoo、Waline)
28
+ - 显示切换(ColorMode)
29
+ - 灯箱(medium-zoom、fancybox)
30
+ - 数学公式(Latex)
31
+ - 特色页面:即刻短文、我的装备、在线工具、音乐馆、友链鱼塘、相册页、豆瓣页
32
+ - 文章功能:AI 摘要、代码高亮
50
33
 
51
- 修改hexo配置文件`_config.yml`,把主题改为`solitude`
34
+ ## Todo
52
35
 
53
- ```
54
- theme: solitude
55
- ```
36
+ - [x] Waline 评论支持
37
+ - [ ] Tags plugin 插件化
38
+ - [ ] 相册页重构
56
39
 
57
- ## 🎉 特色
40
+ ## 应用
58
41
 
59
- - [x] 页面组件懒加载(pjax方案)
60
- - [x] 图片懒加载
61
- - [x] 多种代码高亮方案
62
- - [x] 多语言配置
63
- - [x] 支持多种评论插件
64
- - [x] 内置网页访问统计
65
- - [x] 支持暗色模式
66
- - [x] 支持自定义CDN静态资源
67
- - [x] 支持多功能右键菜单
68
- - [x] 支持定制化的主色调随封面图片颜色变化
69
- - [x] 支持沉浸式状态栏
70
- - [x] 支持百度分析
71
- - [x] 支持图片大图查看
72
- - [x] 支持瀑布流即刻说说
73
- - [x] 瀑布流相册
74
- - [x] 支持自定义图标(iconfont、CoDeSign、fontawesome)
75
- - [x] 支持高速缓存的swpp,pwa特性
76
- - [x] 优秀的隐私协议支持
77
- - [x] 文章摘要AI支持
78
- - [x] 支持全局中控台
79
- - [x] 支持本地搜索/algolia搜索🔍
80
- - [x] 支持 Latex 数学公式
81
- - [x] 支持 PWA
42
+ 1. 使用 NPM 包进行安装
43
+ ```bash
44
+ npm i hexo-theme-solitude
45
+ ```
46
+ 2. 应用主题
47
+ ```yaml
48
+ theme: solitude
49
+ ```
50
+
51
+ 前往 [文档](https://solitude-docs.efu.me/) 获取更多信息。
82
52
 
83
- ## 贡献者
53
+ ## 贡献者
84
54
 
85
55
  <a href="https://github.com/valor-x/hexo-theme-solitude/graphs/contributors">
86
- <img src="https://contrib.rocks/image?repo=valor-x/hexo-theme-solitude" />
56
+ <img alt="contributors" src="https://contrib.rocks/image?repo=valor-x/hexo-theme-solitude" />
87
57
  </a>
88
58
 
89
59
  **主题由 [@张洪Heo](https://github.com/zhheo) 作者全权授权、设计!**
90
60
 
91
- > 欢迎你对本主题做出贡献![贡献指南](/CONTRIBUTING.md)
61
+ > 欢迎你对本主题做出贡献![贡献指南](/CONTRIBUTING.md)
package/README_EN.md CHANGED
@@ -1,91 +1,61 @@
1
- <div align="right">
2
- <a title="English" href="/README.md">中文</a>
3
- </div>
4
-
5
-
6
- ## Hexo-Theme-Solitude
7
-
8
- ![master version](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/master?color=%231ab1ad&label=master)
9
- ![master version](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/dev?label=dev)
10
- ![https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff](https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff)
11
- [![GitHub all releases](https://img.shields.io/github/downloads/valor-x/hexo-theme-solitude/total)](https://github.com/valor-x/hexo-theme-solitude/releases/latest)
12
- ![hexo version](https://img.shields.io/badge/hexo-6.3.0+-0e83c)
13
- ![license](https://img.shields.io/github/license/valor-x/hexo-theme-solitude?color=FF5531)
14
-
15
- ![首页](https://github.com/valor-x/hexo-theme-solitude/assets/74389842/d008aba4-942d-4fdb-a611-d934c0bad9fe)
1
+ [简体中文](README.md)丨[繁体中文](README_zh-tw.md)丨English
16
2
 
17
- Theme Preview: [亦封](https://blog.meuicat.cn/)|[Demo](https://solitude-demo.efu.me/)
3
+ <div align="center">
18
4
 
19
- Theme Document: [中文](https://solitude-docs.efu.me/)
5
+ <img src=".github/logo.svg" alt="Solitude logo" height="200">
20
6
 
21
- ## 💻 Installation
7
+ <h1 align="center">Hexo Theme Solitude</h1>
22
8
 
23
- ### Installation via Git
9
+ <p align="center">An elegant Hexo theme that supports lazy loading, PWA, Latex, and multiple comment systems.</p>
24
10
 
25
- > This repository is also uploaded to [Gitee](https://gitee.com/nsjjd_w/hexo-theme-solitude). If you have trouble accessing Github, you can download it from Gitee.
26
-
27
- Install the stable version in the root of your blog directory 【Recommended】
28
-
29
- ```powershell
30
- git clone -b main https://github.com/valor-x/hexo-theme-solitude.git themes/solitude
31
- ```
32
-
33
- If you want to install the latest development version, you can install the dev branch in the root of your blog directory
11
+ ![release](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/master?color=%231ab1ad&label=release)
12
+ ![https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff](https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff)
13
+ ![license](https://img.shields.io/github/license/valor-x/hexo-theme-solitude?color=FF5531)
14
+ ![hexo version](https://img.shields.io/badge/hexo-6.3.0+-0e83c)
15
+ [![Stars](https://img.shields.io/github/stars/valor-x/hexo-theme-solitude)](https://github.com/valor-x/hexo-theme-solitude/stargazers)
16
+ [![GitHub all releases](https://img.shields.io/github/downloads/valor-x/hexo-theme-solitude/total)](https://github.com/valor-x/hexo-theme-solitude/releases/latest)
34
17
 
35
- ```powershell
36
- git clone -b dev https://github.com/valor-x/hexo-theme-solitude.git themes/solitude
37
- ```
18
+ [Preview](https://solitude-demo.efu.me/) 丨 [Documentation](https://solitude-docs.efu.me/)
38
19
 
39
- ### Installation via NPM
20
+ </div>
40
21
 
41
- > This method only supports Hexo versions above 5.0.0. Installing through npm will not generate a theme folder in themes, but in node_modules instead.
22
+ ![Screenshot](.github/screenshot.png)
42
23
 
43
- Execute the following command in the root of your blog directory:
24
+ ## Features
44
25
 
45
- ```powershell
46
- npm install hexo-theme-solitude
47
- ```
26
+ - Pjax、LazyLoad、PWA
27
+ - Comments(Twikoo、Waline)
28
+ - ColorMode
29
+ - Lightbox(medium-zoom、fancybox)
30
+ - Mathematical formulas(Latex)
31
+ - Featured pages: Instant Short Article, My Equipment, Online Tools, Music Gallery, Friend Chain Fish Pond, Photo Album Page, Douban Page
32
+ - Article features: AI summary, code highlighting
48
33
 
49
- ## ⚙ Applying the Theme
34
+ ## Todo
50
35
 
51
- Modify the hexo configuration file `_config.yml` and change the theme to `solitude`
36
+ - [x] Support Waline
37
+ - [ ] Tags plugin
38
+ - [ ] Album reconstruction
52
39
 
53
- ```
54
- theme: solitude
55
- ```
40
+ ## Setup
56
41
 
57
- ## 🎉 Features
42
+ 1. Use the NPM package
43
+ ```bash
44
+ npm i hexo-theme-solitude
45
+ ```
46
+ 2. Apply
47
+ ```yaml
48
+ theme: solitude
49
+ ```
58
50
 
59
- - [x] Lazy loading of page components (pjax scheme)
60
- - [x] Lazy loading of images
61
- - [x] Multiple code highlighting schemes
62
- - [x] Multi-language configuration
63
- - [x] Support for multiple comment plugins
64
- - [x] Built-in web page access statistics
65
- - [x] Support for dark mode
66
- - [x] Support for footnote syntax
67
- - [x] Support for custom CDN static resources
68
- - [x] Support multi-function right-click menu
69
- - [x] Support for customizing the main color to change with the color of the cover image
70
- - [x] Support for immersive status bars
71
- - [x] Support for Baidu Analytics
72
- - [x] Support viewing large images
73
- - [x] Support for waterfall instant talk
74
- - [x] Support for custom icons (iconfont, CoDeSign, fontawesome)
75
- - [x] Support SWPP and PWA features for caching
76
- - [x] Excellent privacy protocol support
77
- - [x] Article abstract AI support
78
- - [x] Support for global center consoles
79
- - [x] Support local search/algolia search 🔍
80
- - [x] Support for Katex math formulas
81
- - [x] PWA support
51
+ Check out the [Documentation](https://solitude-docs.efu.me/) for more information.
82
52
 
83
- ## Contributors
53
+ ## Contributors
84
54
 
85
55
  <a href="https://github.com/valor-x/hexo-theme-solitude/graphs/contributors">
86
- <img src="https://contrib.rocks/image?repo=valor-x/hexo-theme-solitude" />
56
+ <img alt="contributors" src="https://contrib.rocks/image?repo=valor-x/hexo-theme-solitude" />
87
57
  </a>
88
58
 
89
- **This theme designed and authorized by the author [张洪Heo](https://github.com/zhheo)!**
59
+ **Theme is fully licensed and designed by the author of [@张洪Heo](https://github.com/zhheo)!**
90
60
 
91
- > Welcome to contribute to this theme! [Contribution Guide](/CONTRIBUTING.md)
61
+ > You are welcome to contribute to this topic! [Contribution Guide](/CONTRIBUTING.md)
@@ -0,0 +1,61 @@
1
+ [简体中文](README.md)丨繁体中文丨[English](README_EN.md)
2
+
3
+ <div align="center">
4
+
5
+ <img src=".github/logo.svg" alt="Solitude logo" height="200">
6
+
7
+ <h1 align="center">Hexo Theme Solitude</h1>
8
+
9
+ <p align="center">一款優雅的 Hexo 主題,支援懶載入、PWA、Latex以及多種評論系統。</p>
10
+
11
+ ![release](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/master?color=%231ab1ad&label=release)
12
+ ![https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff](https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff)
13
+ ![license](https://img.shields.io/github/license/valor-x/hexo-theme-solitude?color=FF5531)
14
+ ![hexo version](https://img.shields.io/badge/hexo-6.3.0+-0e83c)
15
+ [![Stars](https://img.shields.io/github/stars/valor-x/hexo-theme-solitude)](https://github.com/valor-x/hexo-theme-solitude/stargazers)
16
+ [![GitHub all releases](https://img.shields.io/github/downloads/valor-x/hexo-theme-solitude/total)](https://github.com/valor-x/hexo-theme-solitude/releases/latest)
17
+
18
+ [預覽](https://solitude-demo.efu.me/) 丨 [文档](https://solitude-docs.efu.me/)
19
+
20
+ </div>
21
+
22
+ ![Screenshot](.github/screenshot.png)
23
+
24
+ ## 特性
25
+
26
+ - 頁面懶載入(Pjax)、圖片懶載入(LazyLoad)、離線應用(PWA)
27
+ - 評論(Twikoo、Waline)
28
+ - 顯示切換(ColorMode)
29
+ - 燈箱(medium-zoom、fancybox)
30
+ - 數學公式(Latex)
31
+ - 特色頁面:即刻短文、我的裝備、在線工具、音樂館、友鏈魚塘、相冊頁、豆瓣頁
32
+ - 文章功能:AI 摘要、代碼高亮
33
+
34
+ ## Todo
35
+
36
+ - [x] Waline 評論支援
37
+ - [ ] Tags plugin 外掛程式化
38
+ - [ ] 相冊頁重構
39
+
40
+ ## 應用
41
+
42
+ 1. 使用 NPM 包進行安裝
43
+ ```bash
44
+ npm i hexo-theme-solitude
45
+ ```
46
+ 2. 應用主題
47
+ ```yaml
48
+ theme: solitude
49
+ ```
50
+
51
+ 前往 [文檔](https://solitude-docs.efu.me) 獲取更多資訊。
52
+
53
+ ## 貢獻者
54
+
55
+ <a href="https://github.com/valor-x/hexo-theme-solitude/graphs/contributors">
56
+ <img alt="contributors" src="https://contrib.rocks/image?repo=valor-x/hexo-theme-solitude" />
57
+ </a>
58
+
59
+ **主題由 [@张洪Heo](https://github.com/zhheo) 全權授權、設計!**
60
+
61
+ > 歡迎你對本主題做出貢獻![貢獻指南](/CONTRIBUTING.md)
@@ -78,7 +78,7 @@ script.
78
78
  )(window)
79
79
 
80
80
  console.log(
81
- "%c Program: Hexo %c Theme: Solitude %c Version: v1.5.2",
81
+ "%c Program: Hexo %c Theme: Solitude %c Version: v1.5.4",
82
82
  "border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
83
83
  "padding: 5px 10px;color:white;background:#3e9f50;",
84
84
  "border-radius:0 5px 5px 0;padding: 5px 10px;background:#0084ff;color:white;"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-solitude",
3
- "version": "1.5.2",
3
+ "version": "1.5.4",
4
4
  "description": "A beautiful, powerful, and efficient Hexo theme developed by the wleelw",
5
5
  "main": "package.json",
6
6
  "scripts": {
@@ -6,13 +6,13 @@ hexo.extend.filter.register('after_post_render', function (data) {
6
6
  if (data.layout === 'post') {
7
7
  data.locate = data.locate || config.post.default.locate
8
8
  data.cc = data.cc || config.post.default.copyright
9
- data.cover = data.cover || config.post.default.cover[getRandomInt(0, config.post.default.cover.length)]
9
+ data.cover = data.cover || config.post.default.cover[getRandomInt(0, config.post.default.cover.length)] || '/img/default.png'
10
10
  data.excerpt = data.description || data.excerpt
11
11
  if (config.aside.toc.post && data.toc !== false) data.toc = true
12
12
  else data.toc = false
13
13
  }
14
14
  if (data.layout === 'page') {
15
- data.cover = data.cover || config.page.default.cover[getRandomInt(0, config.post.default.cover.length)]
15
+ data.cover = data.cover || config.page.default.cover[getRandomInt(0, config.post.default.cover.length)] || '/img/default.png'
16
16
  data.excerpt = data.title
17
17
  if (config.aside.toc.page && data.toc !== false && data.aside) data.toc = true
18
18
  else data.toc = false
Binary file
@@ -3,10 +3,10 @@ const coverColor = () => {
3
3
  if (path) {
4
4
  handleApiColor(path);
5
5
  } else {
6
- document.documentElement.style.setProperty('--st-main', 'var(--st-theme)');
7
- document.documentElement.style.setProperty('--st-main-op', 'var(--st-theme-op)');
8
- document.documentElement.style.setProperty('--st-main-op-deep', 'var(--st-theme-op-deep)');
9
- document.documentElement.style.setProperty('--st-main-none', 'var(--st-theme-none)');
6
+ document.documentElement.style.setProperty('--st-main', 'var(--efu-theme)');
7
+ document.documentElement.style.setProperty('--st-main-op', 'var(--efu-theme-op)');
8
+ document.documentElement.style.setProperty('--st-main-op-deep', 'var(--efu-theme-op-deep)');
9
+ document.documentElement.style.setProperty('--st-main-none', 'var(--efu-theme-none)');
10
10
  initThemeColor()
11
11
  }
12
12
  }
@@ -53,13 +53,13 @@ function setThemeColors(value, r = null, g = null, b = null) {
53
53
  if (brightness < 125) {
54
54
  let cardContents = document.getElementsByClassName('card-content');
55
55
  for (let i = 0; i < cardContents.length; i++) {
56
- cardContents[i].style.setProperty('--st-card-bg', 'var(--st-white)');
56
+ cardContents[i].style.setProperty('--st-card-bg', 'var(--efu-white)');
57
57
  }
58
58
 
59
59
  let authorInfo = document.getElementsByClassName('author-info__sayhi');
60
60
  for (let i = 0; i < authorInfo.length; i++) {
61
- authorInfo[i].style.setProperty('background', 'var(--st-white-op)');
62
- authorInfo[i].style.setProperty('color', 'var(--st-white)');
61
+ authorInfo[i].style.setProperty('background', 'var(--efu-white-op)');
62
+ authorInfo[i].style.setProperty('color', 'var(--efu-white)');
63
63
  }
64
64
  }
65
65
  }
@@ -67,10 +67,10 @@ function setThemeColors(value, r = null, g = null, b = null) {
67
67
  document.getElementById("coverdiv").classList.add("loaded");
68
68
  initThemeColor();
69
69
  } else {
70
- document.documentElement.style.setProperty('--st-main', 'var(--st-theme)');
71
- document.documentElement.style.setProperty('--st-main-op', 'var(--st-theme-op)');
72
- document.documentElement.style.setProperty('--st-main-op-deep', 'var(--st-theme-op-deep)');
73
- document.documentElement.style.setProperty('--st-main-none', 'var(--st-theme-none)');
70
+ document.documentElement.style.setProperty('--st-main', 'var(--efu-theme)');
71
+ document.documentElement.style.setProperty('--st-main-op', 'var(--efu-theme-op)');
72
+ document.documentElement.style.setProperty('--st-main-op-deep', 'var(--efu-theme-op-deep)');
73
+ document.documentElement.style.setProperty('--st-main-none', 'var(--efu-theme-none)');
74
74
  initThemeColor();
75
75
  }
76
76
  }
@@ -3,10 +3,10 @@ const coverColor = () => {
3
3
  if (path) {
4
4
  localColor(path);
5
5
  } else {
6
- document.documentElement.style.setProperty('--st-main', 'var(--st-theme)');
7
- document.documentElement.style.setProperty('--st-main-op', 'var(--st-theme-op)');
8
- document.documentElement.style.setProperty('--st-main-op-deep', 'var(--st-theme-op-deep)');
9
- document.documentElement.style.setProperty('--st-main-none', 'var(--st-theme-none)');
6
+ document.documentElement.style.setProperty('--st-main', 'var(--efu-theme)');
7
+ document.documentElement.style.setProperty('--st-main-op', 'var(--efu-theme-op)');
8
+ document.documentElement.style.setProperty('--st-main-op-deep', 'var(--efu-theme-op-deep)');
9
+ document.documentElement.style.setProperty('--st-main-none', 'var(--efu-theme-none)');
10
10
  initThemeColor()
11
11
  }
12
12
  }
@@ -118,13 +118,13 @@ function setThemeColors(value, r = null, g = null, b = null) {
118
118
  if (brightness < 125) {
119
119
  let cardContents = document.getElementsByClassName('card-content');
120
120
  for (let i = 0; i < cardContents.length; i++) {
121
- cardContents[i].style.setProperty('--st-card-bg', 'var(--st-white)');
121
+ cardContents[i].style.setProperty('--st-card-bg', 'var(--efu-white)');
122
122
  }
123
123
 
124
124
  let authorInfo = document.getElementsByClassName('author-info__sayhi');
125
125
  for (let i = 0; i < authorInfo.length; i++) {
126
- authorInfo[i].style.setProperty('background', 'var(--st-white-op)');
127
- authorInfo[i].style.setProperty('color', 'var(--st-white)');
126
+ authorInfo[i].style.setProperty('background', 'var(--efu-white-op)');
127
+ authorInfo[i].style.setProperty('color', 'var(--efu-white)');
128
128
  }
129
129
  }
130
130
  }
@@ -132,10 +132,10 @@ function setThemeColors(value, r = null, g = null, b = null) {
132
132
  document.getElementById("coverdiv").classList.add("loaded");
133
133
  initThemeColor();
134
134
  } else {
135
- document.documentElement.style.setProperty('--st-main', 'var(--st-theme)');
136
- document.documentElement.style.setProperty('--st-main-op', 'var(--st-theme-op)');
137
- document.documentElement.style.setProperty('--st-main-op-deep', 'var(--st-theme-op-deep)');
138
- document.documentElement.style.setProperty('--st-main-none', 'var(--st-theme-none)');
135
+ document.documentElement.style.setProperty('--st-main', 'var(--efu-theme)');
136
+ document.documentElement.style.setProperty('--st-main-op', 'var(--efu-theme-op)');
137
+ document.documentElement.style.setProperty('--st-main-op-deep', 'var(--efu-theme-op-deep)');
138
+ document.documentElement.style.setProperty('--st-main-none', 'var(--efu-theme-none)');
139
139
  initThemeColor();
140
140
  }
141
141
  }
@@ -185,7 +185,7 @@ const utils = {
185
185
  const lightbox = GLOBAL_CONFIG.lightbox
186
186
 
187
187
  if (lightbox === 'mediumZoom' && mediumZoom) {
188
- mediumZoom(selector, {background: "var(--st-card-bg)"});
188
+ mediumZoom(selector, {background: "var(--efu-card-bg)"});
189
189
  }
190
190
 
191
191
  if (lightbox === 'fancybox') {