Skip to content

Commit

Permalink
Add baseurl to unify relative paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
pvc1989 committed Jul 25, 2024
1 parent a8048a1 commit 0fe6e3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,10 @@ title: 葵花宝典
1. 进入本仓库根目录,在命令行中输入
```shell
$ bundle install
$ bundle exec jekyll serve
$ bundle exec jekyll serve [--host HOST] [--port PORT] --incremental
```
1. 生成的文件位于 `./_site/` 中。
1. 在浏览器中访问 [`http://127.0.0.1:4000/`](http://127.0.0.1:4000/) 或 [`http://localhost:4000/`](http://localhost:4000/)
1. 在浏览器中访问 `http://HOST:PORT/miniWiki/`,其中 `HOST:PORT` 默认值为 `127.0.0.1:4000`

## 排版

Expand Down
2 changes: 2 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
baseurl: /miniWiki # place folder name if the site is served in a subfolder

defaults: # 将所有配置选项使用<https://jekyllrb.com/docs/configuration/front-matter-defaults/>功能进行配置
- scope:
path: "" # an empty string here means all files in the project
Expand Down

0 comments on commit 0fe6e3e

Please sign in to comment.