From cbb2ccbddc8e232aedebf314b11ef69a049bfb10 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sat, 1 Aug 2015 23:36:58 +0200 Subject: Add jekyll_multiple_languages plugin. --- Gemfile | 1 + Gemfile.lock | 2 ++ blog/_config.yml | 4 ++++ blog/_plugins/jekyll_multiple_languages.rb | 1 + 4 files changed, 8 insertions(+) create mode 100644 blog/_config.yml create mode 100644 blog/_plugins/jekyll_multiple_languages.rb diff --git a/Gemfile b/Gemfile index c99d6dd..284663e 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,4 @@ source "https://rubygems.org" gem "jekyll" +gem 'jekyll-multiple-languages-plugin' diff --git a/Gemfile.lock b/Gemfile.lock index 44a430d..3bd972b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -33,6 +33,7 @@ GEM jekyll-coffeescript (1.0.1) coffee-script (~> 2.2) jekyll-gist (1.2.1) + jekyll-multiple-languages-plugin (1.2.9) jekyll-paginate (1.1.0) jekyll-sass-converter (1.3.0) sass (~> 3.2) @@ -68,6 +69,7 @@ PLATFORMS DEPENDENCIES jekyll + jekyll-multiple-languages-plugin BUNDLED WITH 1.10.6 diff --git a/blog/_config.yml b/blog/_config.yml new file mode 100644 index 0000000..e1a4620 --- /dev/null +++ b/blog/_config.yml @@ -0,0 +1,4 @@ +--- +languages: + - nb + - en diff --git a/blog/_plugins/jekyll_multiple_languages.rb b/blog/_plugins/jekyll_multiple_languages.rb new file mode 100644 index 0000000..145526c --- /dev/null +++ b/blog/_plugins/jekyll_multiple_languages.rb @@ -0,0 +1 @@ +require 'jekyll/multiple/languages/plugin' -- cgit v1.2.3