Skip to content

Commit

Permalink
Detail repair
Browse files Browse the repository at this point in the history
  • Loading branch information
Petalzu committed Apr 24, 2024
1 parent 7de25d3 commit 77285bb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules/

public/

db.json

1 change: 0 additions & 1 deletion db.json

This file was deleted.

10 changes: 5 additions & 5 deletions source/_posts/hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ npm npm install -S hexo-theme-icarus hexo-renderer-inferno
```

在 Hexo 根目录的 _config.yml 文件中,将 theme 值修改为 Icarus:
```_config.yml
theme: Icarus
```bash
theme: icarus
```
或执行命令:
```bash
Expand Down Expand Up @@ -72,7 +72,7 @@ $ git push -u origin main
使用 node --version 指令检查你电脑上的 Node.js 版本,并记下该版本 (例如:v18.16.0)
在储存库中前往 Settings > Pages > Source,并将 Source 改为 GitHub Actions。
在储存库中建立 .github/workflows/pages.yml,并填入以下内容:
```.github/workflows/pages.yml
```yml
name: Pages

on:
Expand Down Expand Up @@ -123,7 +123,7 @@ $ npm install hexo-generator-feed --save
```

在 Hexo 根目录的 _config.yml 文件中,添加以下内容:
```_config.yml
```yml
feed:
type: rss2
path: sitemap.xml
Expand All @@ -133,7 +133,7 @@ feed:
```
在 _config.icarus.yml 文件中,找到RSS配置并修改为以下形式:
```_config.icarus.yml
```yml
RSS:
icon: fas fa-rss
url: /sitemap.xml
Expand Down

0 comments on commit 77285bb

Please sign in to comment.