monkeyWzr / hugo-theme-cactus

Cactus theme for hugo
MIT License
537 stars 338 forks source link

Can Chinese language support be added? #48

Open seekdoor opened 3 years ago

seekdoor commented 3 years ago

When I edit in Chinese, the preview is garbled. image

ungeschneuer commented 3 years ago

the font probably does not work. You need to change it in the css file.

seekdoor commented 3 years ago

But the article display in posts is normal image

lollipopman commented 3 years ago

Try right clicking on the text and choose inspect in Chrome, then see what font-family is being used to render the text in both instances.

monkeyWzr commented 3 years ago

@seekdoor Hi there! Thanks for using this theme!

This issue seems unrelated to the theme's language support. The languageCode is currently used only at <html lang="...">. It works on my laptop.

Do you have any extension installed in your browser that affects the browser's charset? Charset other than utf-8 will not work. Or can you check the encoding of your config file's encoding? It should also be utf-8.

Best regards! Screenshot from 2021-07-04 21-09-50

ghost commented 2 years ago

want some social credit?