blinkfox / hexo-theme-matery

A beautiful hexo blog theme with material design and responsive design.一个基于材料设计和响应式设计而成的全面、美观的Hexo主题。国内访问:http://blinkfox.com
https://blinkfox.github.io/
Apache License 2.0
5.26k stars 1.25k forks source link

Tweak footer for english site #633

Open sukrosono opened 3 years ago

sukrosono commented 3 years ago

Ah firstly thanks for making such a lovely theme, yours the theme catches my eyes and makes me choose it as my hexo theme.

this is my root conf language: en,id I am not sure that I am not making any mistake in installing the theme, I am just fast reading your readme. I don't expect any Chinese or Japanese characters on my site. The id intended to be Indonesian, as the second lang of the site

image

  1. I am sorry but are the ads intended by default?
  2. Are those characters intended doesn't have an English fallback?

If we have a common desire I want to make some PR for this, but it surely needs your asistance.

blinkfox commented 3 years ago

@brutalcrozt Some are in Chinese, if you don’t understand, you can translate the content.You can modify the content of the footer arbitrarily.

sukrosono commented 3 years ago

Sir how this involved? guide me briefly please

blinkfox commented 3 years ago

@sukrosono In the languages directory of the theme, copy the default.yml file as a yaml file in your own language, for example: xx.yaml, the contents of this file are in the form of key and value, you will add all value Just translate it into your own language.

Finally, modify the language: xx in the root _config.yml file.

Regarding the Chinese in the footer, it may be other contributors. The contributed code has no internationalization support. It is recommended that you directly modify the Chinese content in the layout/_partial/footer.ejs file.

sukrosono commented 3 years ago

Please assist me, I have a plan to remove all Chinese characters when using this theme. It's mean to be full English,

Now I am confused about creating if statement when try to make some PR.

blinkfox commented 3 years ago

@sukrosono Let me complete the internationalization support for this Chinese。

blinkfox commented 3 years ago

@sukrosono I submitted the new footer.ejs code in the develop branch, which supports internationalization, and the default is English.

sukrosono commented 3 years ago

Great man, my mint is broken. I will inform you again, ASAP.