From 9a70ec863a1633dbb355aab4d31b0898076916ab Mon Sep 17 00:00:00 2001 From: Zuoling Rong Date: Sat, 1 Feb 2025 17:21:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=92=8C=E7=94=9F=E6=88=90=E5=99=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 24 ++---------------------- generator.js | 3 +-- index.html | 4 ++-- 3 files changed, 5 insertions(+), 26 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6d77209..a4aa9b4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -22,34 +22,14 @@ jobs: node-version: '16' - name: Install dependencies - run: | - npm init -y - npm install js-yaml + run: npm install - name: Generate site run: node generator.js - - name: Prepare deployment - run: | - # 确保目录存在 - mkdir -p dist - - # 复制网站文件 - cp index.html dist/ - cp style.css dist/ - cp script.js dist/ - - # 显示文件列表以验证 - echo "Deployment files:" - ls -la dist/ - - # 检查文件内容 - echo "Checking index.html..." - head -n 10 dist/index.html - - name: Deploy to GitHub Pages uses: JamesIves/github-pages-deploy-action@v4 with: - folder: dist + folder: . branch: gh-pages clean: true \ No newline at end of file diff --git a/generator.js b/generator.js index 1e00ae8..f13b285 100644 --- a/generator.js +++ b/generator.js @@ -102,9 +102,8 @@ function generateHTML(config) { ${config.site.title} - + -
diff --git a/index.html b/index.html index d5af135..824054e 100644 --- a/index.html +++ b/index.html @@ -75,7 +75,7 @@

Hello,

Welcome to My Navigation

-

Front-end Developer / Open Source Enthusiast / Blogger

+

导航菜单

@@ -139,7 +139,7 @@

基于Vue3的待办事项管理器

- +

个人博客

使用Hexo搭建的技术博客