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
xxxxxxxxxx
CSST Part 1 Hugo
Blog & Markdown
Markdown 語法介紹
開始架設一個 Blog 吧!
這代表在 cmd 內執行
這代表要特別留意 GUI 的操作
請點我
安裝 Dependency
Windows
1.
方式重開Mac OS
brew
套件管理Linux
sudo apt-get install hugo
Hugo 介紹 & 安裝
1. 創立一個 hugo 專用新資料夾
2. for Mac/Linux
在
config.toml
中新增theme = "ananke"
config.toml
就是設定檔案,有問題先檢查他。2. for Windows
輸入以下指令打開

config.toml
檔案第四行新增
theme = "ananke"
3. 建立第一篇 Hugo Blog
4. 渲染並產生網站
hugo server -D
hugo -D
5. 上傳 GitHub
更新
config.toml
中的第一行為:第一次
baseURL = https://<UserName>.github.io/
第二次
baseURL = https://<UserName>.github.io/<RepoName>
Ex:
baseURL = https://William-Mou.github.io/hugo_test
接著創立 GitHub Repo
並依照 GitHub Repo 提示逐行複製貼上
HUGO theme list
每一種 theme 他們的檔案名稱與設定檔不盡相同,使用其他 theme 時記得要去看作者的文件喔!
CI/CD & GitHub Action
CI/CD 與軟體工程
屬於
軟體工程(英語:software engineering),是軟體開發領域裡對工程方法的系統應用。
更通俗講,每週要交一份 500 字的心得報告:
所以導入 CI/CD 我們要做什麼?
GitHub Action 是一種 CI/CD
(幹話)1. 新增 gh-pages.yml 檔案 For Mac/Linux
1. 新增 gh-pages.yml 檔案 For Windows
對以下網址按右鍵,「另存連結」,下載下來
https://raw.githubusercontent.com/William-Mou/quickstart_for-_hugo/main/.github/workflows/gh-pages.yml
接著創建 .github/workflows/ 資料夾,將他放到裡面
2. 上傳到 GitHub
3. 到設定頁面將 GitHub Page 設定如下
Domain 介紹購買
你覺得 https://tw-csie-sprout.github.io/py2020/ 這樣的網址很醜嗎?
那就買一個專屬的名字吧!(Domain、域名)
Domain 設定
租了名字,如何給你的網站名字ㄋ?
1. 告訴世界上所有人,這個名字就是你的網站
<@所有>.mou.tw 的網頁(A)
全部都給 GitHub(192.230.252.153) 處理
2. 告訴 GitHub 網站說,你有名字了喔
Google Analytics
可以參考這篇:https://coreychen71.github.io/posts/2019-05/hugoaddgoogleanalytics/
Reference