The landing page has multilingual support with the i18next plugin.
Languages are configured in the _data/index/language.yml
file.
Not everyone needs this feature, so I make it very easy to remove it, just clear content in file
_data/language.yml
and folderstatic/locales/
.
About how to custom multilingual page, please see wiki.
I use Google analytics and GrowingIO to do web analytics, you can choose either to realize it,just register a account and replace id in _config.yml
.
I use Disqus to realize comment. You should set disqus_shortname and get public key and then, in _config.yml
, edit the disqus value to enable Disqus.
I use AddToAny to share my blog on other social network platform. You can go to this website to custom your share buttons and paste code at _includes/share.html
.
I use javascript to realize blog search,you can double click Ctrl
or click the icon at lower right corner of the page,the detail you can got to this repository. Just use it.
All CSS and JS files are compressed at /static/assets
.
I use UglifyJS2, clean-css to compress CSS and JS files, customised CSS files are at _sass
folder which is feature of Jekyll. If you want to custom CSS and JS files, you need to do the following:
- Install NPM then install UglifyJS2 and clean-css:
npm install -g uglifyjs; npm install -g clean-css
, then runnpm install
at root dir of project. - Compress script is build.js
- If you want to add or remove CSS/JS files, just edit build/build.js and build/files.conf.js, then run
npm run build
at root dir of project, link/src files will use new files.
OR
Edit CSS files at _sass
folder.
First, install Jekyll on terminal:
bundle install
Then, execute:
bundle exec jekyll serve
If you want to give credit to the Jalpc theme with a link to my personal website http://www.jarrekk.com, that'd be awesome. No worries if you don't.
Jalpc is always being improved by its users, so sometimes one may need to upgrade.
If git remote -v
doesn't have an upstream listed, you can do the following to add it:
git remote add upstream https://github.com/jarrekk/Jalpc.git
git pull upstream gh-pages
There may be merge conflicts, so be sure to fix the files that git lists if they occur. That's it!
To test your site locally, you’ll need
- ruby
- the github-pages gem
There are lots of different ways to install ruby.
In Mac OS X, older versions of ruby will already be installed. But I use the Ruby Version Manager (RVM) to have a more recent version. You could also use Homebrew.
In Windows, use RubyInstaller. (In most of this tutorial, I’ve assumed you’re using a Mac or some flavor of Unix. It’s possible that none of this was usable for Windows folks. Sorry!)
Run the following command:
gem install github-pages
This will install the github-pages gem and all dependencies (including jekyll).
gem update github-pages
Testing your site locally To construct and test your site locally, go into the directory and type
jekyll build
This will create (or modify) a _site/ directory
, containing everything from assets/
, and then the index.md
and all pages/*.md
files, converted to html. (So there’ll be _site/index.html
and the various _site/pages/*.html.
)
Type the following in order to “serve” the site. This will first run build, and so it does not need to be preceded by jekyll build
.
jekyll serve
Now open your browser and go to http://localhost:4000/site-name/
-
jekyll server --watch
mode need to use original CSS/JS files - User can customise index page's section title.
- Non-github projects also have links.
- Add some custom color themes for selection(Nav bar, background, words, dominant hue).
If you enjoy it, you can give him a cup of coffee :)