Skip to content

Commit

Permalink
Merge pull request #156 from valor-x/dev
Browse files Browse the repository at this point in the history
v1.5.3
  • Loading branch information
everfu authored Mar 15, 2024
2 parents 8ee11cc + 4ce88ac commit bde0610
Show file tree
Hide file tree
Showing 14 changed files with 185 additions and 167 deletions.
4 changes: 2 additions & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# These are supported funding model platforms

github: [wleelw] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
Expand All @@ -10,4 +10,4 @@ liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
custom: ['https://afdian.net/a/efu0u0'] # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
Binary file added .github/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .github/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Close stale issues and PRs'
on:
schedule:
- cron: '30 1 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v5
with:
days-before-issue-stale: 30
days-before-pr-stale: -1
days-before-close: 7
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.'
close-pr-message: 'This issue has not seen any activity since it was marked stale. Closing.'
stale-issue-label: 'Stale'
exempt-issue-labels: 'pinned,bug,enhancement,documentation,Plan'
operations-per-run: 1000
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_STORE
.vscode
.idea
109 changes: 39 additions & 70 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,91 +1,60 @@
<div align="right">
<a title="English" href="/README_EN.md">English</a>
</div>
简体中文丨[繁体中文](README_zh-tw.md)[English](README_EN.md)

<div align="center">
<img width="200" style="border-radius:10%;" src="./.github/logo.png" alt="Solitude logo"/>

<h1 align="center">Hexo Theme Solitude</h1>

## Hexo-Theme-Solitude
<p align="center">一款优雅的 Hexo 主题,支持懒加载、PWA、Latex以及多种评论系统。</p>

![main version](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/master?color=%231ab1ad&label=main)
![dev version](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/dev?label=dev)
![release](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/master?color=%231ab1ad&label=release)
![https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff](https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff)
![license](https://img.shields.io/github/license/valor-x/hexo-theme-solitude?color=FF5531)
![hexo version](https://img.shields.io/badge/hexo-6.3.0+-0e83c)
[![Stars](https://img.shields.io/github/stars/valor-x/hexo-theme-solitude)](https://github.com/valor-x/hexo-theme-solitude/stargazers)
[![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)
![hexo version](https://img.shields.io/badge/hexo-6.3.0+-0e83c)
![license](https://img.shields.io/github/license/valor-x/hexo-theme-solitude?color=FF5531)

![首页](https://github.com/valor-x/hexo-theme-solitude/assets/74389842/d008aba4-942d-4fdb-a611-d934c0bad9fe)

主题预览: ✨ [亦封](https://blog.meuicat.cn/) | 🐞 [Demo](https://solitude-demo.efu.me/)

主题文档: [中文](https://solitude-docs.efu.me/)

## 💻 安裝
[预览](https://solitude-demo.efu.me/)[文档](https://solitude-docs.efu.me/)

### Git 安裝

> 本仓库同时上传到 [Gitee](https://gitee.com/nsjjd_w/hexo-theme-solitude),如果你访问 Github 缓慢,可从 Gitee 中下载。
在博客根目录里安装稳定版【推荐】

```powershell
git clone -b main https://github.com/valor-x/hexo-theme-solitude.git themes/solitude
```

如果想要安装比较新的 dev 分支,可以在博客根目录里安装开发版

```powershell
git clone -b dev https://github.com/valor-x/hexo-theme-solitude.git themes/solitude
```

### NPM 安装

> 此方法只支持 Hexo 5.0.0 以上版本。通过 npm 安装并不会在 themes 里生成主题文件夹,而是在 node_modules 里生成
</div>

在博客根目录里执行:
![Screenshot](.github/screenshot.png)

```powershell
npm install hexo-theme-solitude
```
## 特性

## ⚙ 应用主题
- 页面懒加载(Pjax)、图片懒加载(LazyLoad)、离线应用(PWA)
- 评论(Twikoo、Waline)
- 显示切换(ColorMode)
- 灯箱(medium-zoom、fancybox)
- 数学公式(Latex)
- 特色页面:即刻短文、我的装备、在线工具、音乐馆、友链鱼塘、相册页、豆瓣页
- 文章功能:AI 摘要、代码高亮

修改hexo配置文件`_config.yml`,把主题改为`solitude`
## Todo

```
theme: solitude
```
- [x] Waline 评论支持
- [ ] Tags plugin 插件化
- [ ] 相册页重构

## 🎉 特色
## 应用

- [x] 页面组件懒加载(pjax方案)
- [x] 图片懒加载
- [x] 多种代码高亮方案
- [x] 多语言配置
- [x] 支持多种评论插件
- [x] 内置网页访问统计
- [x] 支持暗色模式
- [x] 支持自定义CDN静态资源
- [x] 支持多功能右键菜单
- [x] 支持定制化的主色调随封面图片颜色变化
- [x] 支持沉浸式状态栏
- [x] 支持百度分析
- [x] 支持图片大图查看
- [x] 支持瀑布流即刻说说
- [x] 瀑布流相册
- [x] 支持自定义图标(iconfont、CoDeSign、fontawesome)
- [x] 支持高速缓存的swpp,pwa特性
- [x] 优秀的隐私协议支持
- [x] 文章摘要AI支持
- [x] 支持全局中控台
- [x] 支持本地搜索/algolia搜索🔍
- [x] 支持 Latex 数学公式
- [x] 支持 PWA
1. 使用 NPM 包进行安装
```bash
npm i hexo-theme-solitude
```
2. 应用主题
```yaml
theme: solitude
```

前往 [文档](https://solitude-docs.efu.me/) 获取更多信息。

## 贡献者
## 贡献者

<a href="https://github.com/valor-x/hexo-theme-solitude/graphs/contributors">
<img src="https://contrib.rocks/image?repo=valor-x/hexo-theme-solitude" />
<img alt="contributors" src="https://contrib.rocks/image?repo=valor-x/hexo-theme-solitude" />
</a>

**主题由 [@张洪Heo](https://github.com/zhheo) 作者全权授权、设计!**

> 欢迎你对本主题做出贡献![贡献指南](/CONTRIBUTING.md)
> 欢迎你对本主题做出贡献![贡献指南](/CONTRIBUTING.md)
109 changes: 39 additions & 70 deletions README_EN.md
Original file line number Diff line number Diff line change
@@ -1,91 +1,60 @@
<div align="right">
<a title="English" href="/README.md">中文</a>
</div>
[简体中文](README.md)[繁体中文](README_EN.md)丨English

<div align="center">
<img width="200" style="border-radius:10%;" src="./.github/logo.png" alt="Solitude logo"/>

<h1 align="center">Hexo Theme Solitude</h1>

## Hexo-Theme-Solitude
<p align="center">An elegant Hexo theme that supports lazy loading, PWA, Latex, and multiple comment systems.</p>

![master version](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/master?color=%231ab1ad&label=master)
![master version](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/dev?label=dev)
![release](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/master?color=%231ab1ad&label=release)
![https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff](https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff)
[![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)
![hexo version](https://img.shields.io/badge/hexo-6.3.0+-0e83c)
![license](https://img.shields.io/github/license/valor-x/hexo-theme-solitude?color=FF5531)
![hexo version](https://img.shields.io/badge/hexo-6.3.0+-0e83c)
[![Stars](https://img.shields.io/github/stars/valor-x/hexo-theme-solitude)](https://github.com/valor-x/hexo-theme-solitude/stargazers)
[![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)

![首页](https://github.com/valor-x/hexo-theme-solitude/assets/74389842/d008aba4-942d-4fdb-a611-d934c0bad9fe)

Theme Preview: [亦封](https://blog.meuicat.cn/)[Demo](https://solitude-demo.efu.me/)

Theme Document: [中文](https://solitude-docs.efu.me/)

## 💻 Installation

### Installation via Git

> 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.
Install the stable version in the root of your blog directory 【Recommended】

```powershell
git clone -b main https://github.com/valor-x/hexo-theme-solitude.git themes/solitude
```

If you want to install the latest development version, you can install the dev branch in the root of your blog directory

```powershell
git clone -b dev https://github.com/valor-x/hexo-theme-solitude.git themes/solitude
```
[Preview](https://solitude-demo.efu.me/)[Documentation](https://solitude-docs.efu.me/)

### Installation via NPM
</div>

> 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.
![Screenshot](.github/screenshot.png)

Execute the following command in the root of your blog directory:
## Features

```powershell
npm install hexo-theme-solitude
```
- Pjax、LazyLoad、PWA
- Comments(Twikoo、Waline)
- ColorMode
- Lightbox(medium-zoom、fancybox)
- Mathematical formulas(Latex)
- Featured pages: Instant Short Article, My Equipment, Online Tools, Music Gallery, Friend Chain Fish Pond, Photo Album Page, Douban Page
- Article features: AI summary, code highlighting

## ⚙ Applying the Theme
## Todo

Modify the hexo configuration file `_config.yml` and change the theme to `solitude`
- [x] Support Waline
- [ ] Tags plugin
- [ ] Album reconstruction

```
theme: solitude
```
## Setup

## 🎉 Features
1. Use the NPM package
```bash
npm i hexo-theme-solitude
```
2. Apply
```yaml
theme: solitude
```

- [x] Lazy loading of page components (pjax scheme)
- [x] Lazy loading of images
- [x] Multiple code highlighting schemes
- [x] Multi-language configuration
- [x] Support for multiple comment plugins
- [x] Built-in web page access statistics
- [x] Support for dark mode
- [x] Support for footnote syntax
- [x] Support for custom CDN static resources
- [x] Support multi-function right-click menu
- [x] Support for customizing the main color to change with the color of the cover image
- [x] Support for immersive status bars
- [x] Support for Baidu Analytics
- [x] Support viewing large images
- [x] Support for waterfall instant talk
- [x] Support for custom icons (iconfont, CoDeSign, fontawesome)
- [x] Support SWPP and PWA features for caching
- [x] Excellent privacy protocol support
- [x] Article abstract AI support
- [x] Support for global center consoles
- [x] Support local search/algolia search 🔍
- [x] Support for Katex math formulas
- [x] PWA support
Check out the [Documentation](https://solitude-docs.efu.me/) for more information.

## Contributors
## Contributors

<a href="https://github.com/valor-x/hexo-theme-solitude/graphs/contributors">
<img src="https://contrib.rocks/image?repo=valor-x/hexo-theme-solitude" />
<img alt="contributors" src="https://contrib.rocks/image?repo=valor-x/hexo-theme-solitude" />
</a>

**This theme designed and authorized by the author [张洪Heo](https://github.com/zhheo)!**
**Theme is fully licensed and designed by the author of [@张洪Heo](https://github.com/zhheo)!**

> Welcome to contribute to this theme! [Contribution Guide](/CONTRIBUTING.md)
> You are welcome to contribute to this topic! [Contribution Guide](/CONTRIBUTING.md)
60 changes: 60 additions & 0 deletions README_zh-tw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
[简体中文](README.md)丨繁体中文丨[English](README_EN.md)

<div align="center">
<img width="200" style="border-radius:10%;" src="./.github/logo.png" alt="Solitude logo"/>

<h1 align="center">Hexo Theme Solitude</h1>

<p align="center">一款優雅的 Hexo 主題,支援懶載入、PWA、Latex以及多種評論系統。</p>

![release](https://img.shields.io/github/package-json/v/valor-x/hexo-theme-solitude/master?color=%231ab1ad&label=release)
![https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff](https://img.shields.io/npm/v/hexo-theme-solitude?color=%09%23bf00ff)
![license](https://img.shields.io/github/license/valor-x/hexo-theme-solitude?color=FF5531)
![hexo version](https://img.shields.io/badge/hexo-6.3.0+-0e83c)
[![Stars](https://img.shields.io/github/stars/valor-x/hexo-theme-solitude)](https://github.com/valor-x/hexo-theme-solitude/stargazers)
[![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)

[預覽](https://solitude-demo.efu.me/)[文档](https://solitude-docs.efu.me/)

</div>

![Screenshot](.github/screenshot.png)

## 特性

- 頁面懶載入(Pjax)、圖片懶載入(LazyLoad)、離線應用(PWA)
- 評論(Twikoo、Waline)
- 顯示切換(ColorMode)
- 燈箱(medium-zoom、fancybox)
- 數學公式(Latex)
- 特色頁面:即刻短文、我的裝備、在線工具、音樂館、友鏈魚塘、相冊頁、豆瓣頁
- 文章功能:AI 摘要、代碼高亮

## Todo

- [x] Waline 評論支援
- [ ] Tags plugin 外掛程式化
- [ ] 相冊頁重構

## 應用

1. 使用 NPM 包進行安裝
```bash
npm i hexo-theme-solitude
```
2. 應用主題
```yaml
theme: solitude
```

前往 [文檔](https://solitude-docs.efu.me) 獲取更多資訊。

## 貢獻者

<a href="https://github.com/valor-x/hexo-theme-solitude/graphs/contributors">
<img alt="contributors" src="https://contrib.rocks/image?repo=valor-x/hexo-theme-solitude" />
</a>

**主題由 [@张洪Heo](https://github.com/zhheo) 全權授權、設計!**

> 歡迎你對本主題做出貢獻![貢獻指南](/CONTRIBUTING.md)
2 changes: 1 addition & 1 deletion layout/includes/inject/head.pug
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ script.
)(window)

console.log(
"%c Program: Hexo %c Theme: Solitude %c Version: v1.5.2",
"%c Program: Hexo %c Theme: Solitude %c Version: v1.5.3",
"border-radius:5px 0 0 5px;padding: 5px 10px;color:white;background:#ff3842;",
"padding: 5px 10px;color:white;background:#3e9f50;",
"border-radius:0 5px 5px 0;padding: 5px 10px;background:#0084ff;color:white;"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-theme-solitude",
"version": "1.5.2",
"version": "1.5.3",
"description": "A beautiful, powerful, and efficient Hexo theme developed by the wleelw",
"main": "package.json",
"scripts": {
Expand Down
Binary file modified source/img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit bde0610

Please sign in to comment.