Skip to content

Commit 8d2a94a

Browse files
authored
Merge pull request #457 from EvanNotFound/dev
v2.8.0
2 parents c4930b5 + e22b67c commit 8d2a94a

File tree

178 files changed

+3409
-3086
lines changed

Some content is hidden

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

178 files changed

+3409
-3086
lines changed

.coderabbit.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,10 @@ reviews:
1111
auto_review:
1212
enabled: true
1313
drafts: false
14+
path_filters:
15+
- "!source/build/**"
16+
- "*.min.js"
17+
- "*.min.css"
18+
- "*.map"
1419
chat:
1520
auto_reply: true
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build JS and CSS
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
paths:
9+
- 'source/js/**'
10+
- 'source/css/**'
11+
- 'source/build/**'
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout Repository
19+
uses: actions/checkout@v4
20+
with:
21+
persist-credentials: false # Prevent using GITHUB_TOKEN automatically
22+
fetch-depth: 0 # Fetch all history for accurate file diffs
23+
24+
- name: Set up Node.js
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: '20.x' # Specify your Node.js version
28+
29+
- name: Install Dependencies
30+
run: npm install
31+
32+
- name: Build Project
33+
run: npm run build
34+
35+
- name: Configure Git
36+
run: |
37+
git config user.name "github-actions"
38+
git config user.email "github-actions@github.com"
39+
40+
- name: Commit and Push Changes
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
run: |
44+
git add source/build/js source/build/css
45+
# Check if there are any changes
46+
if ! git diff --cached --quiet; then
47+
git commit -m "ci: build and update source/build/js and source/build/css [skip ci]"
48+
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git" HEAD:${GITHUB_REF#refs/heads/}
49+
else
50+
echo "No changes to commit"
51+
fi

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
- run: npm ci
2323

24-
- run: npm run build:css
24+
- run: npm run build
2525

2626
- run: npm publish
2727
env:

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run build

_config.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,8 @@ articles:
317317
default: cc_by_nc_sa # Default license, can be cc_by_nc_sa, cc_by_nd, cc_by_nc, cc_by_sa, cc_by, all_rights_reserved, public_domain
318318
# Whether to enable lazyload for images
319319
lazyload: true
320+
# Pangu.js (automatically add space between Chinese and English). See https://github.com/vinta/pangu.js
321+
pangu_js: false
320322
# Article recommendation. Requires nodejieba (npm install nodejieba). Transplanted from hexo-theme-volantis.
321323
recommendation:
322324
# Whether to enable article recommendation
@@ -461,7 +463,7 @@ cdn:
461463
# Whether to enable CDN
462464
enable: false
463465
# CDN Provider
464-
provider: npmmirror # npmmirror, zstatic, sustech, cdnjs, jsdelivr, unpkg, custom
466+
provider: npmmirror # npmmirror, zstatic, cdnjs, jsdelivr, unpkg, custom
465467
# Custom CDN URL
466468
# format example: https://cdn.custom.com/hexo-theme-redefine/${version}/source/${path}
467469
# The ${path} must leads to the root of the "source" folder of the theme

languages/fr.yml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# ----------------------------------------
2+
# Traduction du site
3+
# ----------------------------------------
4+
search: recherche...
5+
toc: Sur cette page
6+
prev: Précédent
7+
next: Suivant
8+
prev_posts: Articles précédents
9+
next_posts: Articles suivants
10+
page: Page %d
11+
recent_posts: Articles récents
12+
share: Partager
13+
powered_by: "POWERED BY %s"
14+
theme: THEME
15+
rss_feed: Flux RSS
16+
category: Catégorie
17+
categories: Catégories
18+
tag: Tag
19+
tags: Tags
20+
post: Post
21+
posts: Posts
22+
tagcloud: Nuage de tags
23+
comment: Commentaire
24+
comments: Commentaires
25+
home: Accueil
26+
archive: Archive
27+
archives: Archives
28+
top: TOP
29+
sticky: Sticky
30+
go-back-home: Retour à l'accueil
31+
32+
# ----------------------------------------
33+
# Traduction du menu
34+
# ----------------------------------------
35+
about: À propos
36+
changelog: Journal des modifications
37+
links: Liens
38+
link: Lien
39+
friends: Amis
40+
friend: Ami
41+
timeline: Chronologie
42+
shuoshuo: Shuoshuo
43+
44+
# ----------------------------------------
45+
# Nombre de sites Web
46+
# ----------------------------------------
47+
site_uv: VISITEURS
48+
site_pv: NOMBRE TOTAL DE PAGES VUES
49+
read_more: Lire la suite
50+
wordcount: Mots
51+
min2read: Min
52+
status: Status
53+
54+
# ----------------------------------------
55+
# Pied de page
56+
# ----------------------------------------
57+
runtime: Blog en ligne depuis
58+
days: Jours
59+
hours: Hrs
60+
minutes: Min
61+
seconds: Sec
62+
optimized_by: et Propulsé par Evan
63+
rights: Tous droits réservés
64+
site_posts: "%s posts au total"
65+
site_wordcount: "%s mots au total"
66+
67+
# ----------------------------------------
68+
# Post
69+
# ----------------------------------------
70+
copyright:
71+
author: Auteur
72+
title: Titre
73+
link: Lien
74+
create_time: Créé à
75+
update_time: Mis à jour à
76+
license_title: Licence
77+
license_content: "Cette œuvre est sous licence %s."
78+
all_rights_reserved: "Tous droits réservés à © %s"
79+
public_domain: "Cette œuvre est dans le domaine public."
80+
81+
ago:
82+
second: "Il y a %s secondes"
83+
minute: "Il y a %s minutes"
84+
hour: "Il y a %s heures"
85+
day: "Il y a %s jours"
86+
week: "Il y a %s semaines"
87+
month: "Il y a %s mois"
88+
year: "Il y a %s années"
89+
90+
create_time: Créé
91+
update_time: Mis à jour
92+
expired: "Ce message a été écrit il y a %s jours et son contenu peut être obsolète."

layout/_partials/page-template.ejs

Lines changed: 0 additions & 42 deletions
This file was deleted.

layout/_widgets/essays.ejs

Lines changed: 0 additions & 23 deletions
This file was deleted.

layout/_widgets/friends-link.ejs

Lines changed: 0 additions & 65 deletions
This file was deleted.

layout/_widgets/local-search.ejs

Lines changed: 0 additions & 27 deletions
This file was deleted.

layout/_widgets/masonry.ejs

Lines changed: 0 additions & 27 deletions
This file was deleted.

layout/_widgets/paginator.ejs

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)