hugo/tpl
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
..
reflect_helpers.go Make where accept slice 2016-03-06 13:15:07 +01:00
template.go Take 2: Load templates from the Afero source fs 2016-07-30 17:28:40 +02:00
template_embedded.go Allow picking a specific file out of a gist 2016-03-11 18:29:07 +01:00
template_funcs.go Add multilingual support in Hugo 2016-09-06 18:32:15 +03:00
template_funcs_test.go tpl: Add missing arg to Fatalf 2016-08-20 20:52:14 +01:00
template_i18n.go Add multilingual support in Hugo 2016-09-06 18:32:15 +03:00
template_resources.go Use the Afero source fs where relevant 2016-07-30 15:37:03 +02:00
template_resources_test.go tpl: Do not write to cache when ignoring cache 2016-04-14 10:48:26 +02:00
template_test.go Add readFile template func 2016-03-31 21:24:18 +02:00