jarrekk / Jalpc

🍎Jalpc -- A flexible Jekyll theme, 3 steps to build your website.
https://jarrekk.github.io/Jalpc/
MIT License
1.02k stars 1.1k forks source link

Languages #40

Closed Dean-Coakley closed 7 years ago

Dean-Coakley commented 7 years ago

Hi @JiaKunUp ,

Thank you so much for creating such a great Jekyll theme!

I want to completely remove the translation system. I only require English and it is a pain to have to update en.json as well as the other files too for every change. How can I go about this? Sorry for basic question, I have not used Jekyll before. Thanks.

jarrekk commented 7 years ago

Thanks for using this theme.

A simple way to remove language feature is just clearing locals folder and edit content in html files(_includes/_sections/), I think this will help you.

Dean-Coakley commented 7 years ago

Appears to be working as you say.

Thank you very much! 👍 However this is giving a 404 error for not finding en.json. Is there an easy way to fix this?

jarrekk commented 7 years ago

You can remove i18next.min.js from _includes/index_head.html and localization.js from _includes/index_foot.html

jarrekk commented 7 years ago

From this comment you can clear _data/language.yml to remove languages. https://github.com/JiaKunUp/jalpc_jekyll_theme/commit/d57316ae9577e8d71fce1cb929ddef669207b69b

Dean-Coakley commented 7 years ago

Seems perfect now. Thank you so much!