Skip to content

Commit

Permalink
Merge pull request #457 from EvanNotFound/dev
Browse files Browse the repository at this point in the history
v2.8.0
  • Loading branch information
EvanNotFound authored Nov 19, 2024
2 parents c4930b5 + e22b67c commit 8d2a94a
Show file tree
Hide file tree
Showing 178 changed files with 3,409 additions and 3,086 deletions.
5 changes: 5 additions & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,10 @@ reviews:
auto_review:
enabled: true
drafts: false
path_filters:
- "!source/build/**"
- "*.min.js"
- "*.min.css"
- "*.map"
chat:
auto_reply: true
51 changes: 51 additions & 0 deletions .github/workflows/build-and-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Build JS and CSS

on:
push:
branches:
- main
- dev
paths:
- 'source/js/**'
- 'source/css/**'
- 'source/build/**'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
persist-credentials: false # Prevent using GITHUB_TOKEN automatically
fetch-depth: 0 # Fetch all history for accurate file diffs

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x' # Specify your Node.js version

- name: Install Dependencies
run: npm install

- name: Build Project
run: npm run build

- name: Configure Git
run: |
git config user.name "github-actions"
git config user.email "github-actions@github.com"
- name: Commit and Push Changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git add source/build/js source/build/css
# Check if there are any changes
if ! git diff --cached --quiet; then
git commit -m "ci: build and update source/build/js and source/build/css [skip ci]"
git push "https://$GITHUB_ACTOR:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git" HEAD:${GITHUB_REF#refs/heads/}
else
echo "No changes to commit"
fi
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- run: npm ci

- run: npm run build:css
- run: npm run build

- run: npm publish
env:
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npm run build
4 changes: 3 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,8 @@ articles:
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
# Whether to enable lazyload for images
lazyload: true
# Pangu.js (automatically add space between Chinese and English). See https://github.com/vinta/pangu.js
pangu_js: false
# Article recommendation. Requires nodejieba (npm install nodejieba). Transplanted from hexo-theme-volantis.
recommendation:
# Whether to enable article recommendation
Expand Down Expand Up @@ -461,7 +463,7 @@ cdn:
# Whether to enable CDN
enable: false
# CDN Provider
provider: npmmirror # npmmirror, zstatic, sustech, cdnjs, jsdelivr, unpkg, custom
provider: npmmirror # npmmirror, zstatic, cdnjs, jsdelivr, unpkg, custom
# Custom CDN URL
# format example: https://cdn.custom.com/hexo-theme-redefine/${version}/source/${path}
# The ${path} must leads to the root of the "source" folder of the theme
Expand Down
92 changes: 92 additions & 0 deletions languages/fr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# ----------------------------------------
# Traduction du site
# ----------------------------------------
search: recherche...
toc: Sur cette page
prev: Précédent
next: Suivant
prev_posts: Articles précédents
next_posts: Articles suivants
page: Page %d
recent_posts: Articles récents
share: Partager
powered_by: "POWERED BY %s"
theme: THEME
rss_feed: Flux RSS
category: Catégorie
categories: Catégories
tag: Tag
tags: Tags
post: Post
posts: Posts
tagcloud: Nuage de tags
comment: Commentaire
comments: Commentaires
home: Accueil
archive: Archive
archives: Archives
top: TOP
sticky: Sticky
go-back-home: Retour à l'accueil

# ----------------------------------------
# Traduction du menu
# ----------------------------------------
about: À propos
changelog: Journal des modifications
links: Liens
link: Lien
friends: Amis
friend: Ami
timeline: Chronologie
shuoshuo: Shuoshuo

# ----------------------------------------
# Nombre de sites Web
# ----------------------------------------
site_uv: VISITEURS
site_pv: NOMBRE TOTAL DE PAGES VUES
read_more: Lire la suite
wordcount: Mots
min2read: Min
status: Status

# ----------------------------------------
# Pied de page
# ----------------------------------------
runtime: Blog en ligne depuis
days: Jours
hours: Hrs
minutes: Min
seconds: Sec
optimized_by: et Propulsé par Evan
rights: Tous droits réservés
site_posts: "%s posts au total"
site_wordcount: "%s mots au total"

# ----------------------------------------
# Post
# ----------------------------------------
copyright:
author: Auteur
title: Titre
link: Lien
create_time: Créé à
update_time: Mis à jour à
license_title: Licence
license_content: "Cette œuvre est sous licence %s."
all_rights_reserved: "Tous droits réservés à © %s"
public_domain: "Cette œuvre est dans le domaine public."

ago:
second: "Il y a %s secondes"
minute: "Il y a %s minutes"
hour: "Il y a %s heures"
day: "Il y a %s jours"
week: "Il y a %s semaines"
month: "Il y a %s mois"
year: "Il y a %s années"

create_time: Créé
update_time: Mis à jour
expired: "Ce message a été écrit il y a %s jours et son contenu peut être obsolète."
42 changes: 0 additions & 42 deletions layout/_partials/page-template.ejs

This file was deleted.

23 changes: 0 additions & 23 deletions layout/_widgets/essays.ejs

This file was deleted.

65 changes: 0 additions & 65 deletions layout/_widgets/friends-link.ejs

This file was deleted.

27 changes: 0 additions & 27 deletions layout/_widgets/local-search.ejs

This file was deleted.

27 changes: 0 additions & 27 deletions layout/_widgets/masonry.ejs

This file was deleted.

7 changes: 0 additions & 7 deletions layout/_widgets/paginator.ejs

This file was deleted.

Loading

0 comments on commit 8d2a94a

Please sign in to comment.