Hugo is a popular and fast engine to build static sites from Markdown content files. But if you want to render LaTeX math equation in your html pages, you need more. Mathjax and Katex are two options to do the job.
Mathjax is a powerful Javascript engine which renders each LaTeX snippet into a svg, while Katex is a lightweight math typesetting library which renders each LaTeX symbol into kind of typesetting character.