I initially attempted to follow the setup of mathematics in content management section of Hugo. Not knowing how it worked, I assumed I can copy and paste these configurations straight out of the box, but this did not work. I wanted to run and I wanted to run fast without first understanding the underlying architecture of Hugo
In comes a bit of googling and running into this article by Misha Brukman in Writing Math with Hugo. With a bit of copy + paste. Here are the results below.
$$ \begin{bmatrix} a & b \\ c & d \\ e & f \\ \end{bmatrix} $$$$ [ \begin{aligned} KL(\hat{y} || y) &= \sum_{c=1}^{M}\hat{y}_c \log{\frac{\hat{y}_c}{y_c}} \ JS(\hat{y} || y) &= \frac{1}{2}(KL(y||\frac{y+\hat{y}}{2}) + KL(\hat{y}||\frac{y+\hat{y}}{2})) \end{aligned} ] ] $$