Skip to content

update README.md #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .jekyll-metadata
Binary file not shown.
22 changes: 10 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,21 @@

## 前言

### 创建新文章
- 本博客基于 [Docusaurus v3](https://docusaurus.io/) 搭建,使用 [GitHub Pages](https://pages.github.com/) 托管。
- 推荐使用 [yarn](https://yarnpkg.com/) 管理依赖。
- 推荐使用 Node.js 18.0.0 及以上版本,(当前在用 Node.js 20.0.0)。

> 新建 Post,Title 可为中文,自动转变成拼音
## 本地开发

```bash
rake post title="A Title" [date="2012-02-09"] [tags=[tag1,tag2]] [category="category"]
git clone
cd samzong.github.io
yarn install
yarn start
```

也可以按照格式创建文章,以标题前缀为日期,title,tag,categroy 写在文章内即可,比如搭配 Typora 之类

### 新建页面
## 部署

```bash
rake page name="about.html"
yarn deploy
```

## 运行 Jekyll

- 目录下运行 `make serve`
- 本地浏览地址:[http://localhost:3000](http://localhost:3000)
161 changes: 0 additions & 161 deletions cannot-upgrade-file.md

This file was deleted.