diff --git a/.gitea/workflows/blog_hexo.yaml b/.gitea/workflows/blog_hexo.yaml index 26a16f9..051b72c 100644 --- a/.gitea/workflows/blog_hexo.yaml +++ b/.gitea/workflows/blog_hexo.yaml @@ -5,9 +5,6 @@ on: branches: - main -env: - DEPLOYED_DIR: /opt/1panel/apps/openresty/openresty/www/sites/hexoblog/index - jobs: Deploy-Hexo_Blog: name: Deploy blog @@ -15,24 +12,19 @@ jobs: steps: - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - - name: Configure + - name: Configure Node run: npm config set registry https://registry.npmmirror.com - name: Check out repository code uses: actions/checkout@v4 - - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - - # - name: Set up Node.js - # uses: actions/setup-node@v3 - # with: - # node-version: '16.18' + - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - name: Build run: | npm install npm run clean npm run build - - name: Deploy + - name: Deploy to Home Server uses: easingthemes/ssh-deploy@main with: SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} @@ -42,4 +34,6 @@ jobs: REMOTE_USER: ${{ secrets.REMOTE_USER }} TARGET: ${{ secrets.REMOTE_TARGET }} EXCLUDE: "/public/, /node_modules/" + - name: Deploy to GitHub Pages + run: npm run deploy - run: echo "🍏 This job's status is ${{ job.status }}." \ No newline at end of file diff --git a/_config.butterfly.yml b/_config.butterfly.yml index e097a4f..7537c55 100644 --- a/_config.butterfly.yml +++ b/_config.butterfly.yml @@ -80,7 +80,7 @@ favicon: /img/favicon16x16.png # Avatar (頭像) avatar: - img: /img/avatar.png + img: /img/avatar.jpeg effect: false # Disable all banner image @@ -90,7 +90,7 @@ disable_top_img: false index_img: /img/index_img.png # If the banner of page not setting, it will show the top_img -default_top_img: https://s2.loli.net/2022/08/14/OSlNBJfUAcWYIdF.png +default_top_img: /img/default_banner.png # The banner image of archive page archive_img: @@ -123,10 +123,10 @@ cover: position: both # When cover is not set, the default cover is displayed (當沒有設置cover時,默認的封面顯示) default_cover: - - https://s2.loli.net/2022/08/14/4bGjC1YzqQpIKBZ.jpg - - https://s2.loli.net/2022/08/14/7J9RvVH8husy5BE.png - - https://s2.loli.net/2022/08/14/OSlNBJfUAcWYIdF.png - - https://s2.loli.net/2022/08/14/FWfoLexXQO1HDtA.png + - /img/default_cover1.png + - /img/default_cover2.png + - /img/default_banner.png + - /img/default_cover3.png # Replace Broken Images (替換無法顯示的圖片) @@ -138,7 +138,7 @@ error_img: error_404: enable: true subtitle: 'Page Not Found' - background: https://i.loli.net/2020/05/19/aKOcLiyPl2JQdFD.png + background: /img/page_404.png post_meta: page: # Home Page diff --git a/source/img/avatar.jpeg b/source/img/avatar.jpeg new file mode 100644 index 0000000..168b92c Binary files /dev/null and b/source/img/avatar.jpeg differ diff --git a/source/img/avatar.png b/source/img/avatar.png deleted file mode 100644 index b8b6925..0000000 Binary files a/source/img/avatar.png and /dev/null differ diff --git a/source/img/default_banner.png b/source/img/default_banner.png new file mode 100644 index 0000000..d918cd7 Binary files /dev/null and b/source/img/default_banner.png differ diff --git a/source/img/default_cover1.jpg b/source/img/default_cover1.jpg new file mode 100644 index 0000000..086df6b Binary files /dev/null and b/source/img/default_cover1.jpg differ diff --git a/source/img/default_cover2.png b/source/img/default_cover2.png new file mode 100644 index 0000000..e61080e Binary files /dev/null and b/source/img/default_cover2.png differ diff --git a/source/img/default_cover3.png b/source/img/default_cover3.png new file mode 100644 index 0000000..63697f5 Binary files /dev/null and b/source/img/default_cover3.png differ diff --git a/source/img/page_404.png b/source/img/page_404.png new file mode 100644 index 0000000..eef539c Binary files /dev/null and b/source/img/page_404.png differ