快轉到主要內容

Hugo 小抄

-
目錄

很難記所以寫了一份小抄

清理資料夾

hugo --cleanDestinationDir

錨點

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

1. Icon

Icon namePreviewIcon namePreview
triangle-exclamationcircle-info
checkxmark
lightbulbfire
searchglobe
location-dotlock
codelink
listbars
heartheart-empty
bombbug
downloadcomment
emailedit
expandeye
ghostfork
graduation-caplanguage
imageshield
mug-hotmusic
pencilpgpkey
phonepoo
rssrss-square
scale-balancedskull-crossbones
moonsun
starwand-magic-sparkles

2. 圖片

![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. 數學

{{< 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. 外站載入

{{< 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. 文字強調

# 內建
{{< keyword >}} keyword {{< /keyword >}}

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

<kbd>ALT</kbd>+<kbd>F4</kbd>

keyword

Alert! text here

Text here

ALT + F4

# 新增
{{< expand "expand"  >}}
expand
{{< /expand >}}

{{< hint info >}}
**info/warning/danger**<br>
Text
{{< /hint >}}

expand
⚠️ 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

ZSL
作者
ZSL
正事不做。

相關文章

Hugo Blowfish 的進階客製化
-
補足各種功能,例如文章存檔頁面、閱讀進度、文章編輯時間。
Hugo Blowfish 的問題修復
-
修復 blowfish 相關的功能問題。
Hugo Blowfish 的基礎設定
-
Hugo Blowfish 的基礎設定教學(或者說紀錄)。