[github account].github.io
例:leahlin912.github.io
git@github.com:leahlin912/leahlin912.github.io.git
)# Deployment
的部分
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type: git
repository: git@github.com:leahlin912/leahlin912.github.io.git
branch: master
$ npm install hexo-deployer-git --save
$ hexo deploy -g
設定repository的主題
在github的該repository頁面,進入「setting」
往下滑,點按「change theme」
在瀏覽器中查看網址,成功!https://leahlin912.github.io/
若有檔案更新,則重複輸入指令
hexo deploy -g
選擇要套用的主題
[Themes]
(https://hexo.io/themes/index.html)
點進該主題的github頁面
在README.md中,依照install指令複製起來,並在terminal中進入blog資料夾中執行指令完畢
用vscode開啟blog資料夾,並進入_config.yml
檔案中,修改主題theme(參考readme中開發者定義的theme名稱)
因為檔案有更新,所以需要在terminal輸入指令
hexo deploy -g
or
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing