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

Different default language when i18n is enabled #109

Closed Skyflash closed 6 years ago

Skyflash commented 6 years ago

Hi, how i can set a default language different than en when i18n is enabled?

jarrekk commented 6 years ago

@Skyflash The wiki page step 4 has a code block on how to set default language.

Skyflash commented 6 years ago

Yes, i changed it. But it seems it doesn't work :( My mistake?

jarrekk commented 6 years ago

Have you updated the JSON file name in step 2?

jarrekk commented 6 years ago

You can show me your repo. :)

Skyflash commented 6 years ago

Ok, thank you :)

https://github.com/Skyflash/Jalpc

absolutely work in progress :)

jarrekk commented 6 years ago

@Skyflash I had a look at your repo, it's cool, perhaps this doc can help you, the file you edit is not which used at Jekyll, you should compress it, then it should work. Here is an issue about this: https://github.com/jarrekk/Jalpc/issues/64, needs improvement. :)

Skyflash commented 6 years ago

Ok, done following you linked doc

  1. run npm install -g uglifyjs
  2. run npm install -g clean-css
  3. run npm install (al three in the root of the project)
  4. config localization.js (located in /static/asset/js/)
  5. npm run build

Thank you ;)