Math

Typeset math from: Writing math with Hugo | Misha Brukman

test inline: $\psi_{rq} =L_ri_{rq}- \frac{L_{M}^{2}}{L_{s}}i_{rq}$

test align: use 3 backslashes \\\ instead of 2 \\, it works, but is odd…

$$ \begin{aligned} u_{rd} &= R_ri_{rd}+ \sigma L_{r}\frac{d i_{rd}}{dt}-\omega_{s1}\sigma L_{r}i_{rq}+ \left(\frac{L_{M}}{L_{s}}\frac{d}{dt}\psi_{s}\approx 0 \right)\\\ u_{rq} &= R_ri_{rq}+\sigma L_{r}\frac{d i_{rq}}{dt}+\omega_{s1}\sigma L_{r}i_{rd}+\omega_{s1}\frac{L_{M}}{L_{s}} \psi_s \end{aligned} $$

Figure

A figure from my oss, Markdown syntax ![](myoss.com/1.png) works:

A local figure, ![](/images/test_image.png), while the actual image file is in \static\images: /images/test_image.png

Use local image and tips: Rendering Images in Markdown Preview of Hugo Site | Mike F. Robbins (mikefrobbins.com)

Switched to PicGo with Github repo, also works:

Github Pages and deploy

GitHub Pages

Host on GitHub | Hugo (gohugo.io)

Code blocks

1
2
3
4
5
6
module pwm_led
(
input clk,
input reset_n,
output led
);

Other settings

demo: PaperMod (adityatelange.github.io)

source: adityatelange/hugo-PaperMod at exampleSite (github.com)

Tags

https://discourse.gohugo.io/t/how-to-add-tag-and-category/3202

yaml: tags: ["test Hugo and PaperMod"]

config.yml:

taxonomies:
  category: categories
  tag: tags
  series: series 

toc

Many thanks to: Hugo侧边目录 | 3rd’s Blog

and

Hugo博客目录放在侧边 | PaperMod主题 | Sulv’s Blog (sulvblog.cn)

test bold, italics, inline code

Reference

Started this blog from this tutorial (internal access): 使用ZJU Git快速搭建个人博客 - CC98论坛