mirror of https://github.com/theNewDynamic/gohugo-theme-ananke.git

Konrad Kleine
26.45.2019 e956994e135d1e6a2db3bfd29dfae98145f406d7
refs
author Konrad Kleine <konrad.kleine@posteo.de>
Tuesday, March 26, 2019 21:45 +0100
committer Bud Parr <budparr@gmail.com>
Tuesday, March 26, 2019 21:45 +0100
commite956994e135d1e6a2db3bfd29dfae98145f406d7
tree ada6a84452f8602f26253d770123c67abf64d355 tree | zip | gz
parent 175482653c94ec89b7c9f37a9b148c8fd774a058 view | diff
Fix TOC header (#168)

In English, the translation that is supposed to be shown on top of the table of contents looks like this:

```toml
[whatsInThis]
other = "What's in this {{.Type }}"
```

When it is invoked, there are two mistakes: `{{ i18n "whatsInThis" humanize .Type }}`.

The first mistake is that you cannot call `humanize` in this context. The more severe one is that if you remove `humanize` it will pass the `.Type` directly to the i18n and that tries to extract `.Type` from it.
1 files modified
2 ■■■ changed files
layouts/partials/menu-contextual.html 2 ●●● diff | view | raw | blame | history