Why does my blog online not match the local style

Same code.

Left is GitHub page (hugo --minify) and right is local (hugo server -D):

Link: https://sussurous.com/posts/markdown-syntax/#paragraph-段落

Why is this happening?

My guess is that --minify removes a line break before “备注”.

A line break between inline elements in HTML are rendered as a space.

Remove the line break and no space.


Yes! I removed the spaces and line breaks before and after the Icon and it disappeared. I’m now going to have a good look around my site to see if there are any other similar situations, thanks for your help!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.