My repo is here GitHub - pocofrosty/pocofrosty.github.io: Personal Website for Darren Zheng. I’m encountering some confusing behavior for me to do with the minifying CSS (although this is implemented directly by the theme’s author and I couldn’t seem to find anyone else with issues on the inactive Github Repo Code search results).
When I view the “Spring 2023” post, I can see the math render properly as below:
It seems to pull the fonts directly from
.../css/fonts/..., which is published to public from the copy of the fonts stored in my own static directory. However, this seems redundant to me as Poison seems to store the fonts in the theme’s static folder. Additionally, the font.css file gets pushed to the public folder via pipes through:
I can't seem to figure out why deleting my local folder of the katex fonts breaks the site. It isnt clear to me why the fonts from the theme's static folder aren't appearing in public folder, or why its looking for the fonts in `css/fonts/...` in the first place. My suspicion is I'm misunderstanding how hugo's pipeline works, but I don't believe I override any default theme behavior with respect to this. Would appreciate any comments to help clear my confusion.{{ $css_bundle := slice
(resources.Get “css/poole.css”)
(resources.Get “css/codeblock.css”)
(resources.Get “css/hyde.css”)
(resources.Get “css/poison.css”)
(resources.Get “css/fonts.css”)
(resources.Get “css/lib/katex.css”)
(resources.Get “css/tabs.css”)
(resources.Get “css/custom.css”)
| resources.Concat “css/bundle.css” | minify | fingerprint }}
Sorry for the hastily written post, please let me know if the above description of my issue is unclear.


