Hugo 小抄

很難記所以寫了一份小抄

清理資料夾

hugo --cleanDestinationDir

錨點

1
2
3
4
## xxx {#id}
中間要空格
...
[goto](/posts/url#id/)

2. 圖片

1
2
3
4
5
6
7
![Alt text](gallery/03.jpg "Image caption")
{{< figure
    src="https://pbs.twimg.com/media/GOTI0skbcAAkAVX.jpg"
    alt="Abstract purple artwork"
    caption="Photo by [Umi](https://x.com/sinonome_umi) on [Big Comic Superior](https://bigcomicbros.net/magazines/83422/)"
    >}}
{{< carousel images="{https://cdn.pixabay.com/photo/2016/12/11/12/02/mountains-1899264_960_720.jpg, gallery/03.jpg, gallery/01.jpg, gallery/02.jpg, gallery/04.jpg}" >}}

3. 數學

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
{{< katex >}}
\\(f(a,b,c) = (a^2+b^2+c^2)^3\\)

$$
\footnotesize
\begin{aligned}
&h_{\text{LOS}} &&= e^{(j2\pi\mathcal{N}(1,1))} \newline
&h_{\text{NLOS}} &&= \mathcal{CN}(0, \sigma^2) \newline
&h &&= h_{\text{LOS}}\sqrt{\dfrac{K}{K + 1}} + h_{\text{NLOS}}\sqrt{\frac{1}{K + 1}}
\end{aligned}
$$

\(f(a,b,c) = (a^2+b^2+c^2)^3\)

$$ \footnotesize \begin{aligned} &h_{\text{LOS}} &&= e^{(j2\pi\mathcal{N}(1,1))} \newline &h_{\text{NLOS}} &&= \mathcal{CN}(0, \sigma^2) \newline &h &&= h_{\text{LOS}}\sqrt{\dfrac{K}{K + 1}} + h_{\text{NLOS}}\sqrt{\frac{1}{K + 1}} \end{aligned} $$

4. 外站載入

1
2
3
4
{{< mdimporter url="https://raw.githubusercontent.com/nunocoracao/nunocoracao/master/README.md" >}}
{{< codeimporter url="https://raw.githubusercontent.com/nunocoracao/blowfish/main/layouts/shortcodes/mdimporter.html" type="go" >}}
{{< github repo="nunocoracao/blowfish" >}}
{{< youtubeLite id="yzrb4WA2NRQ" label="Blowfish-tools demo" params="start=130&end=10&controls=0" >}}

5. 文字強調

1
2
3
4
5
6
7
8
## 內建
{{< keyword >}} keyword {{< /keyword >}}

{{< alert cardColor="#e63946" iconColor="#1d3557" textColor="#000000" >}}
**Alert!** text here
{{< /alert >}}

<kbd>ALT</kbd>+<kbd>F4</kbd>
1
2
3
4
{{< hint info >}}
**info/warning/danger**<br>
Text
{{< /hint >}}

note
Text
tip
Text
info
Text
warning
Text
danger
Text

6. 部落格參考

Code and Me
伊果的沒人看筆記本
大大的小蜗牛
拆解整合的旅人 by Ernest Chiang
CRE0809's Blog
老苏的blog 聚沙成塔,集腋成裘
咕咕 learn or earn
Sulv's Blog
Hexo stellar theme

載入評論