Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ybw2016v committed Apr 14, 2024
1 parent 04d0927 commit 8620619
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 16 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Pages

on:
push:
branches:
- main # default branch

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
# If your repository depends on submodule, please see: https://github.com/actions/checkout
submodules: recursive
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
# Examples: 20, 18.19, >=16.20.2, lts/Iron, lts/Hydrogen, *, latest, current, node
# Ref: https://github.com/actions/setup-node#supported-version-syntax
node-version: '20'
- name: Cache NPM dependencies
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache
restore-keys: |
${{ runner.OS }}-npm-cache
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
26 changes: 13 additions & 13 deletions _config.butterfly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ code_word_wrap: false
# formal:
# icon: link || the description || color
social:
# fab fa-github: https://github.com/xxxxx || Github || '#24292e'
# fas fa-envelope: mailto:[email protected] || Email || '#4a7dbe'
fab fa-github: https://github.com/nekozone || Github || '#24292e'
fas fa-envelope: mailto:[email protected] || Email || '#4a7dbe'

# Image (圖片設置)
# --------------------------------------
Expand All @@ -44,14 +44,14 @@ favicon: /img/favicon.png

# Avatar (頭像)
avatar:
img: https://i.loli.net/2021/02/24/5O1day2nriDzjSu.png
img: https://xn--32g.601288.xyz/a.png
effect: false

# Disable all banner image
disable_top_img: false

# The banner image of home page
index_img:
index_img: https://xn--32g.601288.xyz/cat-4977436_1920.jpg

# If the banner of page not setting, it will show the top_img
default_top_img:
Expand Down Expand Up @@ -207,7 +207,7 @@ noticeOutdate:
footer:
owner:
enable: true
since: 2020
since: 2017
custom_text:
copyright: true # Copyright of theme and framework

Expand All @@ -231,9 +231,9 @@ aside:
enable: true
icon: fab fa-github
text: Follow Me
link: https://github.com/xxxxxx
link: https://github.com/nekozone
card_announcement:
enable: true
enable: false
content: This is my Blog
card_recent_post:
enable: true
Expand Down Expand Up @@ -626,9 +626,9 @@ site_verification:
# The top_img settings of home page
# default: top img - full screen, site info - middle (默認top_img全屏,site_info在中間)
# The position of site info, eg: 300px/300em/300rem/10% (主頁標題距離頂部距離)
index_site_info_top:
index_site_info_top:
# The height of top_img, eg: 300px/300em/300rem (主頁top_img高度)
index_top_img_height:
index_top_img_height: 400px

# The user interface setting of category and tag page (category和tag頁的UI設置)
# index - same as Homepage UI (index 值代表 UI將與首頁的UI一樣)
Expand Down Expand Up @@ -778,7 +778,7 @@ preloader:
# wordcount (字數統計)
# see https://butterfly.js.org/posts/ceeb73f/#字數統計
wordcount:
enable: false
enable: true
post_wordcount: true
min2read: true
total_wordcount: true
Expand Down Expand Up @@ -841,7 +841,7 @@ note:
# It may contain bugs and unstable, give feedback when you find the bugs.
# https://github.com/MoOx/pjax
pjax:
enable: false
enable: true
exclude:
# - xxxx
# - xxxx
Expand Down Expand Up @@ -874,8 +874,8 @@ pangu:
# Lazyload (圖片懶加載)
# https://github.com/verlok/vanilla-lazyload
lazyload:
enable: false
field: site # site/post
enable: true
field: post # site/post
placeholder:
blur: false

Expand Down
4 changes: 2 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
# Site
title: Nekozone
subtitle: ''
description: ''
description: '喵喵喵'
keywords:
author: John Doe
author: dogcraft
language: en
timezone: ''

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"hexo-renderer-stylus": "^3.0.1",
"hexo-server": "^3.0.0",
"hexo-theme-butterfly": "^4.13.0",
"hexo-theme-landscape": "^1.0.0"
"hexo-theme-landscape": "^1.0.0",
"hexo-wordcount": "^6.0.1"
}
}

0 comments on commit 8620619

Please sign in to comment.