hugo/source
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
..
content_directory_test.go Ignore emacs temp files 2016-07-11 02:01:45 +02:00
file.go Add multilingual support in Hugo 2016-09-06 18:32:15 +03:00
file_test.go helpers: Remove ToReader funcs 2016-06-25 17:57:05 -05:00
filesystem.go source: Normalize file name to NFC 2016-08-08 20:25:00 +02:00
filesystem_test.go source: Normalize file name to NFC 2016-08-08 20:25:00 +02:00
filesystem_unix_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
filesystem_windows_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
inmemory.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
lazy_file_reader.go Make LazyFileReader use the Afero source fs 2016-07-30 15:21:02 +02:00
lazy_file_reader_test.go Use the Afero source fs where relevant 2016-07-30 15:37:03 +02:00