hugo/commands
Alexandre Bourget ec33732fbe Add multilingual support in Hugo
Implements:
* support to render:
  * content/post/whatever.en.md to /en/2015/12/22/whatever/index.html
  * content/post/whatever.fr.md to /fr/2015/12/22/whatever/index.html
* gets enabled when `Multilingual:` is specified in config.
* support having language switchers in templates, that know
  where the translated page is (with .Page.Translations)
  (when you're on /en/about/, you can have a "Francais" link pointing to
   /fr/a-propos/)
  * all translations are in the `.Page.Translations` map, including the current one.
* easily tweak themes to support Multilingual mode
* renders in a single swift, no need for two config files.

Adds a couple of variables useful for multilingual sites

Adds documentation (content/multilingual.md)

Added language prefixing for all URL generation/permalinking see in the
code base.

Implements i18n. Leverages the great github.com/nicksnyder/go-i18n lib.. thanks Nick.
* Adds "i18n" and "T" template functions..
2016-09-06 18:32:15 +03:00
..
benchmark.go Add multilingual support in Hugo 2016-09-06 18:32:15 +03:00
check.go Clean flags 2016-02-05 21:18:45 +01:00
convert.go parser: Spring code cleaning 2016-03-23 14:51:16 +01:00
gen.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
genautocomplete.go Fix example for autocomplete 2016-06-22 13:59:53 +02:00
gendoc.go Add readFile template func 2016-03-31 21:24:18 +02:00
genman.go Add readFile template func 2016-03-31 21:24:18 +02:00
hugo.go Add multilingual support in Hugo 2016-09-06 18:32:15 +03:00
hugo_windows.go Move cobra.MousetrapHelpText to hugo_windows.go 2015-12-16 21:26:47 -07:00
import_jekyll.go Add readFile template func 2016-03-31 21:24:18 +02:00
import_jekyll_test.go Fix copyright headers in source files 2015-12-07 19:57:01 +01:00
limit_darwin.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
limit_others.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
list.go Add multilingual support in Hugo 2016-09-06 18:32:15 +03:00
list_config.go Make config flag global 2016-07-07 18:06:48 +02:00
multilingual.go Add multilingual support in Hugo 2016-09-06 18:32:15 +03:00
new.go Switch to a more up to date TOML library 2016-08-20 20:33:06 +01:00
new_test.go Add readFile template func 2016-03-31 21:24:18 +02:00
server.go Fix for meminterval not using specified interval 2016-08-02 19:48:07 +02:00
server_test.go commands: Allow schema-less baseURL on command line 2016-06-29 23:08:55 -06:00
undraft.go Use the Afero source fs where relevant 2016-07-30 15:37:03 +02:00
undraft_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
version.go commands: Remove unused code 2016-03-14 15:24:42 +01:00