hugo/helpers
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.go Simplify the configuration of HugoHTMLRenderer 2016-07-22 11:00:52 +02:00
content_renderer.go Simplify the configuration of HugoHTMLRenderer 2016-07-22 11:00:52 +02:00
content_renderer_test.go helpers: Rename getMmarkHtmlRenderer to getMmarkHTMLRenderer 2016-03-21 15:17:37 +08:00
content_test.go Consolidate the Render funcs 2016-07-10 11:36:25 +02:00
emoji.go helpers: Fix bug in emoji renderer 2016-08-30 00:34:48 +02:00
emoji_test.go helpers: Fix bug in emoji renderer 2016-08-30 00:34:48 +02:00
general.go Fix the time template func test 2016-08-04 10:36:44 +02:00
general_test.go helpers: Remove ToReader funcs 2016-06-25 17:57:05 -05:00
hugo.go Bump version to 0.17-DEV 2016-06-06 09:10:55 -04:00
hugo_test.go Add copyright header to that source files that don’t have one. 2015-12-10 15:19:38 -07:00
path.go Add multilingual support in Hugo 2016-09-06 18:32:15 +03:00
path_test.go helpers: Fix and add Godoc in path* 2016-03-23 10:03:29 +01:00
pygments.go helpers: Ignore cache for Pygments when flag set 2016-04-10 20:55:57 +02:00
pygments_test.go Apply gofmt -s 2016-02-06 13:09:52 +01:00
url.go docs: Correct all erroneous swaps of "it's" and "its" 2016-08-18 20:42:40 +02:00
url_test.go Fix panic when using URLize 2016-07-11 10:06:40 +02:00