From e956994e135d1e6a2db3bfd29dfae98145f406d7 Mon Sep 17 00:00:00 2001 From: Konrad Kleine Date: Tue, 26 Mar 2019 21:45:46 +0100 Subject: [PATCH] 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. --- layouts/partials/menu-contextual.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/menu-contextual.html b/layouts/partials/menu-contextual.html index 93b3952..ae50dc6 100644 --- a/layouts/partials/menu-contextual.html +++ b/layouts/partials/menu-contextual.html @@ -5,7 +5,7 @@ {{- if .Params.toc -}} {{- end -}}