Math with $\KaTeX$

$x^2=5$ In the PaperMod theme, math is rendered using $\KaTeX$. Follow instructions here to modify Hugo site pages, then use math: true in front matter to enable math rendering. Rendering also works with the front matter title! Block elements Code: 1 $$\displaystyle\sum\limits_{i=0}^n i^3$$ Result: 馃挴 $$\displaystyle\sum\limits_{i=0}^n i^3$$ Code: 1 $$\frac{n!}{k!(n-k)!} = \binom{n}{k}$$ Result: 馃挴 $$\frac{n!}{k!(n-k)!} = \binom{n}{k}$$ Code: 1 2 3 4 5 $$f(n) = \begin{cases} n/2 & \quad \text{if } n \ge 0\\ -(n+1)/2 & \quad \text{if } n \lt 0 \end{cases}$$ Result: 馃槶 $$f(n) = \begin{cases} n/2 & \quad \text{if } n \ge 0\ -(n+1)/2 & \quad \text{if } n \lt 0 \end{cases}$$...

February 25, 2023 路 1 min 路 skaiser

Hugo and Azure Static Web Apps

Azure Static Web Apps are free, so why not use them? This site is hosted on it, and it literally costs me zero money. Let鈥檚 go! What you need A GitHub account An Azure account Steps If you haven鈥檛 already, install Git Install Hugo Create a new Hugo site (locally). Example: hugo new site mysite cd mysite Create a GitHub repo and commit the site. Example: 1 2 3 git init git add ....

February 22, 2023 路 1 min 路 skaiser