A small fix and update to the multilingual example
authorAnthony Fok <foka@debian.org>
Wed, 3 Sep 2014 00:10:19 +0000 (18:10 -0600)
committerspf13 <steve.francia@gmail.com>
Mon, 8 Sep 2014 15:38:12 +0000 (11:38 -0400)
commitac78d25240b0aa428c5a46314b0a6a4e0621d69b
tree3473a0a7dafe240a110fb2a03e50267fb5971e4d
parent4bb5e326dbf0f732dd5db45a47fa25999806111e
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
13 files changed:
examples/multilingual/.gitignore [new file with mode: 0644]
examples/multilingual/README.md [new file with mode: 0644]
examples/multilingual/config.toml [new file with mode: 0644]
examples/multilingual/config.yaml [deleted file]
examples/multilingual/layouts/_default/single.html
examples/multilingual/layouts/chrome/footer.html [deleted file]
examples/multilingual/layouts/chrome/head.html [deleted file]
examples/multilingual/layouts/chrome/header.html [deleted file]
examples/multilingual/layouts/partials/footer.html [new file with mode: 0644]
examples/multilingual/layouts/partials/head.html [new file with mode: 0644]
examples/multilingual/layouts/partials/header.html [new file with mode: 0644]
examples/multilingual/layouts/story/list.html
examples/multilingual/layouts/uudis/list.html