hugo/examples/multilingual
Anthony Fok ac78d25240 A small fix and update to the multilingual example
Enclose `{{ .Content }}` with a `{{ if .IsPage }}` test to avoid
the "Content is not a field of struct type *hugolib.Node" error.
Thanks to @spf13 for the tip!  Fixes #366.

Also update example to Hugo v0.12 conventions:
- Convert config.yaml to config.toml to follow what
  `hugo new site /path/to/site` generates
- Rename layouts/chrome to layouts/partials
- Convert `template` calls to `partial` calls
- Add .gitignore to ignore the `public` directory
- Add README.md with pointers to discussions in issues
  to help bring newcomers up to speed with this multilingual example
2014-09-08 11:38:12 -04:00
..
content
layouts A small fix and update to the multilingual example 2014-09-08 11:38:12 -04:00
static/static
.gitignore A small fix and update to the multilingual example 2014-09-08 11:38:12 -04:00
config.toml A small fix and update to the multilingual example 2014-09-08 11:38:12 -04:00
README.md A small fix and update to the multilingual example 2014-09-08 11:38:12 -04:00

Multilingual website with Hugo

This example was kindly contributed by Egon Elbre in November 2013 as a wonderful proof-of-concept for internationalization (i18n) and multilingualization (m17n) in Hugo-generated websites.

The example works well for the most part, though some minor issues remain. Please see relevant discussions below:

All contributions are welcome!