Skip to content

Commit b6a3493

Browse files
authored
Merge pull request #381 from EvanNotFound/dev
v2.6.3
2 parents d6d9925 + 0357c43 commit b6a3493

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+252
-321
lines changed
Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,32 @@
1-
# workflow 名称,执行时的标题
21
name: Publish to Aliyun
32

4-
# 触发条件
53
on:
64
release:
75
types: [published]
86

9-
# 不清楚干嘛的,保留着
107
workflow_dispatch:
118

12-
# 真正的任务
139
jobs:
14-
# job 名称
15-
build:
16-
# 运行环境
10+
aliyun-cdn-publish:
1711
runs-on: ubuntu-latest
1812

19-
# 步骤
20-
# 1. checkout repo
2113
steps:
22-
- name: Checkout Repository
23-
uses: actions/checkout@v3
24-
25-
# 2. 配置 node
14+
- name: Checkout Repository
15+
uses: actions/checkout@v4
16+
2617
- name: Setup Node
27-
uses: actions/setup-node@v3
18+
uses: actions/setup-node@v4
2819
with:
2920
node-version: 18
3021

31-
32-
# 3. OSS 脚本相关配置
3322
- name: Setup Aliyun OSS
3423
uses: manyuanrong/setup-ossutil@master
3524
with:
3625
endpoint: ${{ secrets.ALI_ENDPOINT }}
3726
access-key-id: ${{ secrets.ALI_ACCESSKEYID }}
3827
access-key-secret: ${{ secrets.ALI_ACCESSKEYSECRET }}
39-
40-
# 4. 执行 OSS 脚本,ossutil 用法 `https://help.aliyun.com/document_detail/50452.html`
28+
4129
- name: Upload to Aliyun OSS
42-
# run: ossutil cp -r source/ oss://${{ secrets.ALI_BUCKET }}/projects/hexo-theme-redefine/${{ github.event.release.name }}/source/
4330
run: |
44-
VERSION=$(echo ${{ github.event.release.name }} | sed 's/v//') # Remove the 'v' prefix from the release name
31+
VERSION=$(echo ${{ github.event.release.name }} | sed 's/v//')
4532
ossutil cp -r source/ oss://${{ secrets.ALI_BUCKET }}/projects/hexo-theme-redefine@$VERSION/source/
46-

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ on:
1010
workflow_dispatch:
1111

1212
jobs:
13-
publish-npm:
13+
npm-publish:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v3
17-
- uses: actions/setup-node@v3
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
1818
with:
19-
node-version: 16
19+
node-version: '20.x'
2020
registry-url: https://registry.npmjs.org/
2121

2222
- run: npm publish

.github/workflows/preview.yml renamed to .github/workflows/preview-deployment.yml

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,41 +9,38 @@ on:
99
- dev
1010
pull_request: # Trigger the workflow on pull request activities
1111
branches:
12-
- main # Specify the target branch for PRs
12+
- dev
13+
- main
1314

1415
jobs:
15-
Deploy-Preview:
16+
preview-deployment:
1617
runs-on: ubuntu-latest
17-
# if: >
18-
# github.event_name == 'workflow_dispatch' ||
19-
# (github.event_name == 'push' && github.repository == 'EvanNotFound/hexo-theme-redefine') ||
20-
# (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == 'EvanNotFound/hexo-theme-redefine')
2118
steps:
2219
- id: script
23-
uses: actions/github-script@v6
20+
uses: actions/github-script@v7
2421
with:
2522
script: |
2623
const isPr = [ 'pull_request', 'pull_request_target' ].includes(context.eventName)
2724
core.setOutput('ref', isPr ? context.payload.pull_request.head.ref : context.ref)
2825
core.setOutput('repo', isPr ? context.payload.pull_request.head.repo.full_name : context.repo.full_name)
2926
3027
- name: Checkout theme repository
31-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
3229
with:
3330
path: 'theme' # Checkout the theme repository into a directory named 'theme'
3431
ref: ${{ steps.script.outputs.ref }}
3532
repository: ${{ steps.script.outputs.repo }}
3633

3734
- name: Setup Node.js
38-
uses: actions/setup-node@v3
35+
uses: actions/setup-node@v4
3936
with:
4037
node-version: '20.x' # Specify your required Node.js version
4138

4239
- name: Clone Hexo site repository
4340
run: git clone https://github.com/EvanNotFound/redefine-demo.git hexo-site
4441

4542
- name: Set up Python
46-
uses: actions/setup-python@v4
43+
uses: actions/setup-python@v5
4744
with:
4845
python-version: '3.x' # Ensure compatibility with Python 3.x
4946

@@ -114,17 +111,4 @@ jobs:
114111
ALIAS_DOMAINS: |
115112
redefine-preview.vercel.app
116113
redefine-preview-git-{SHA}.vercel.app
117-
PR_PREVIEW_DOMAIN: "redefine-preview-pr-{PR}.vercel.app"
118-
119-
120-
# - name: Pull Vercel Environment Information
121-
# run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
122-
# working-directory: ${{ env.HEXO_SITE_DIR }}
123-
124-
# - name: Build Project Artifacts
125-
# run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
126-
# working-directory: ${{ env.HEXO_SITE_DIR }}
127-
128-
# - name: Deploy Project Artifacts to Vercel
129-
# run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
130-
# working-directory: ${{ env.HEXO_SITE_DIR }}
114+
PR_PREVIEW_DOMAIN: "redefine-preview-pr-{PR}.vercel.app"

.github/workflows/production-demo.yml renamed to .github/workflows/production-deployment.yml

Lines changed: 3 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,17 @@ on:
99
- main
1010

1111
jobs:
12-
Deploy-Production:
12+
production-deployment:
1313
runs-on: ubuntu-latest
1414

1515
steps:
1616
- name: Checkout theme repository
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818
with:
1919
path: 'theme' # Checkout the theme repository into a directory named 'theme'
2020

2121
- name: Setup Node.js
22-
uses: actions/setup-node@v2
22+
uses: actions/setup-node@v4
2323
with:
2424
node-version: '20.x' # Specify your required Node.js version
2525

@@ -42,21 +42,9 @@ jobs:
4242
npm uninstall hexo-theme-redefine
4343
npm run build
4444
45-
46-
# - name: Install Vercel CLI
47-
# run: npm install --global vercel@canary
48-
4945
- name: Change directory to hexo-site
5046
run: echo "HEXO_SITE_DIR=${{ github.workspace }}/hexo-site" >> $GITHUB_ENV
5147

52-
# - uses: amondnet/vercel-action@v20 #deploy
53-
# with:
54-
# vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
55-
# vercel-org-id: ${{ secrets.VERCEL_ORG_ID}} #Required
56-
# github-token: ${{ secrets.GITHUB_TOKEN }} #Optional
57-
# vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}} #Required
58-
# working-directory: ${{ env.HEXO_SITE_DIR }}
59-
6048
- name: Deploy to Vercel Action
6149
uses: EvanNotFound/vercel-deployment-for-github-actions@v1.1.0
6250
with:
@@ -69,16 +57,3 @@ jobs:
6957
PRODUCTION: true
7058
DEPLOY_PR_FROM_FORK: true
7159
PR_PREVIEW_DOMAIN: "redefine-preview-pr-{PR}.vercel.app"
72-
73-
74-
# - name: Pull Vercel Environment Information
75-
# run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }}
76-
# working-directory: ${{ env.HEXO_SITE_DIR }}
77-
78-
# - name: Build Project Artifacts
79-
# run: vercel build --token=${{ secrets.VERCEL_TOKEN }}
80-
# working-directory: ${{ env.HEXO_SITE_DIR }}
81-
82-
# - name: Deploy Project Artifacts to Vercel
83-
# run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
84-
# working-directory: ${{ env.HEXO_SITE_DIR }}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
<a title="zh-TW" href="README_zh-TW.md"><img src="https://img.shields.io/badge/-%E7%B9%81%E4%BD%93%E4%B8%AD%E6%96%87-545759?style=for-the-badge" alt="繁体中文"></a>
55
</div>
66

7-
<a href="https://redefine.ohevan.com"><img align="center" src="https://github.com/EvanNotFound/hexo-theme-redefine/assets/68590232/e1d4d384-5cb5-43f9-ad8b-d694480581ca" alt="Redefine"></a>
7+
<a href="https://redefine.ohevan.com"><img align="center" src="https://github.com/EvanNotFound/hexo-theme-redefine/assets/68590232/f2ff10f6-a740-4120-ba04-1b2a518fb019" alt="Redefine"></a>
88

99

1010

1111
# hexo-theme-redefine
1212

13-
The "Redefine" Hexo theme captures **simplicity, speed, and purity** without sacrificing functionality or design. With a sleek, modern look and a host of practical features, it combines beauty with utility effortlessly.
13+
Hexo-theme-Redefine reimagines simplicity, speed, and purity, without sacrificing functionality or design. Its sleek, modern aesthetic is packed with useful features, blending style and practicality seamlessly.
1414

15-
Building on the solid foundation of [hexo-theme-keep](https://github.com/XPoet/hexo-theme-keep), "Redefine" enhances the style and integrates valuable writing modules and plugins. This theme invites personalization, with extensive customization options that let you tailor every detail to your liking. Your blogging journey becomes a unique, user-friendly experience, reflecting your personal style and needs.
15+
Building on the solid foundation of hexo-theme-keep, "Redefine" elevates the style and incorporates valuable writing tools and plugins. It offers extensive customization options, allowing you to tailor every detail to your preferences. With Redefine, your blogging experience becomes unique and effortless, showcasing your personal style and needs.
1616

1717
<p align="center">
1818
<a href="https://www.npmjs.com/package/hexo-theme-redefine">

README_zh-CN.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<a title="zh-TW" href="README_zh-TW.md"><img src="https://img.shields.io/badge/-%E7%B9%81%E4%BD%93%E4%B8%AD%E6%96%87-545759?style=for-the-badge" alt="繁体中文"></a>
55
</div>
66

7-
<a href="https://redefine.ohevan.com"><img align="center" src="https://github.com/EvanNotFound/hexo-theme-redefine/assets/68590232/e1d4d384-5cb5-43f9-ad8b-d694480581ca" alt="Redefine"></a>
7+
<a href="https://redefine.ohevan.com"><img align="center" src="https://github.com/EvanNotFound/hexo-theme-redefine/assets/68590232/f2ff10f6-a740-4120-ba04-1b2a518fb019" alt="Redefine"></a>
88

99

1010
# hexo-theme-redefine
@@ -90,7 +90,6 @@ theme: redefine
9090
```
9191
9292
93-
9493
## ⏫ 更新
9594
9695
Theme Redefine 经常发布新版本,你可以通过如下命令更新 Theme Redefine。
@@ -109,7 +108,6 @@ $ git pull
109108
```
110109

111110

112-
113111
## 📄 文档
114112

115113
请阅读 [Redefine 主题官方文档](https://redefine-docs.ohevan.com/) 进行主题配置与安装,非常简单易懂。

README_zh-TW.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<img src="https://img.shields.io/badge/-%E7%B9%81%E9%AB%94%E4%B8%AD%E6%96%87-A31F34?style=for-the-badge" alt="language">
55
</div>
66

7-
<a href="https://redefine.ohevan.com"><img align="center" src="https://github.com/EvanNotFound/hexo-theme-redefine/assets/68590232/e1d4d384-5cb5-43f9-ad8b-d694480581ca" alt="Redefine"></a>
7+
<a href="https://redefine.ohevan.com"><img align="center" src="https://github.com/EvanNotFound/hexo-theme-redefine/assets/68590232/f2ff10f6-a740-4120-ba04-1b2a518fb019" alt="Redefine"></a>
88

99

1010

_config.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,12 @@ articles:
265265
link_icon: true # Whether to display link icon
266266
title_alignment: left # Title alignment. left, center
267267
headings_top_spacing: # Top spacing for headings from h1-h6
268-
h1: 5rem
269-
h2: 4rem
270-
h3: 2.8rem
271-
h4: 2.5rem
272-
h5: 2.2rem
273-
h6: 2rem
268+
h1: 3.2rem
269+
h2: 2.4rem
270+
h3: 1.9rem
271+
h4: 1.6rem
272+
h5: 1.4rem
273+
h6: 1.3rem
274274
# Word count. Requires hexo-wordcount (npm install hexo-wordcount). See https://github.com/willin/hexo-wordcount
275275
word_count:
276276
enable: true # Whether to enable
@@ -335,6 +335,7 @@ comment:
335335
emoji: [] # Waline emojis, see https://waline.js.org/guide/features/emoji.html
336336
recaptchaV3Key: wasd # Google reCAPTCHA v3 key. See https://waline.js.org/reference/client/props.html#recaptchav3key
337337
turnstileKey: # Turnstile key. See https://waline.js.org/reference/client/props.html#turnstilekey
338+
reaction: false # Waline reaction. See https://waline.js.org/reference/client/props.html#reaction
338339
# Gitalk comment system. See https://github.com/gitalk/gitalk
339340
gitalk:
340341
clientID: # GitHub Application Client ID
@@ -445,7 +446,7 @@ cdn:
445446
# Whether to enable CDN
446447
enable: false
447448
# CDN Provider
448-
provider: aliyun # zstatic, sustech, staticfile, bootcdn, cdnjs, jsdelivr, unpkg, aliyun, custom
449+
provider: zstatic # zstatic, sustech, staticfile, bootcdn, cdnjs, jsdelivr, unpkg, aliyun, custom
449450
# Custom CDN URL
450451
# format example: https://cdn.custom.com/hexo-theme-redefine/${version}/source/${path}
451452
# The ${path} must leads to the root of the "source" folder of the theme

layout/_partials/comments/waline.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
serverURL: '<%= theme.comment.config.waline.serverUrl %>',
1010
lang: '<%= theme.comment.config.waline.lang %>',
1111
dark: 'body[class~="dark-mode"]',
12+
reaction: <%- waline_reaction_config(theme.comment.config.waline.reaction) %>,
1213
requiredMeta: ['nick', 'mail'],
1314
emoji: [<%- theme.comment.config.waline.emoji && theme.comment.config.waline.emoji.map(
1415
(item) => `'${item}'`

layout/_partials/footer.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<% } %>
3434
</div>
3535
<% if (theme.global.website_counter.enable === true) { %>
36-
<script <%= theme.global.single_page === true ? 'data-swup-reload-script' : '' %> src="<%= theme.global.website_counter.url ? theme.global.website_counter.url : "//vercount.one/js" %>"></script>
36+
<script <%= theme.global.single_page === true ? 'data-swup-reload-script' : '' %> src="<%= theme.global.website_counter.url ? theme.global.website_counter.url : "https://vercount.one/js" %>"></script>
3737
<div class="relative text-center lg:absolute lg:right-[20px] lg:top-1/2 lg:-translate-y-1/2 lg:text-right">
3838
<% if (theme.global.website_counter.site_uv) { %>
3939
<span id="busuanzi_container_site_uv" class="lg:!block">

layout/_partials/head.ejs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,6 @@
8787
<% } }%>
8888
<% } }%>
8989

90-
<% if (theme.global.preloader) { %>
91-
<%- partial('_partials/preloader') %>
92-
<% } %>
93-
9490
<%- css('css/style') %>
9591

9692
<% if (theme.developer && theme.developer.enable) {%>
@@ -99,8 +95,8 @@
9995
<%- renderCSS('assets/build/styles.css') %>
10096
<% } %>
10197

102-
<%- renderCSS('fonts/fonts.css') %>
103-
<%- renderCSS('fonts/Satoshi/satoshi.css') %>
98+
<%- renderCSS('fonts/GeistMono/geist-mono.css') %>
99+
<%- renderCSS('fonts/Geist/geist.css') %>
104100
<!--- Font Part-->
105101
<% if (theme.home_banner.custom_font.enable) { %>
106102
<link href="<%- theme.home_banner.custom_font.url %>" rel="stylesheet">
@@ -115,6 +111,9 @@
115111
<link href="<%- theme.global.fonts.english.url %>" rel="stylesheet">
116112
<% } %>
117113

114+
<% if (theme.global.preloader) { %>
115+
<%- renderJS('js/libs/anime.min.js')%>
116+
<% } %>
118117

119118
<%- export_config() %>
120119

0 commit comments

Comments
 (0)