From 3eebd98c3da1272ae2893dc6ed3a4c5b81ce0c5f Mon Sep 17 00:00:00 2001 From: Hideki Ikemoto Date: Thu, 1 Nov 2018 21:51:11 +0900 Subject: [PATCH] Add note for reserved partial name. See. https://github.com/gohugoio/hugo/issues/5373 --- content/en/templates/partials.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/en/templates/partials.md b/content/en/templates/partials.md index 4cb7fb3a5..df5aa7ba2 100644 --- a/content/en/templates/partials.md +++ b/content/en/templates/partials.md @@ -60,6 +60,10 @@ All partials are called within your templates using the following pattern: One of the most common mistakes with new Hugo users is failing to pass a context to the partial call. In the pattern above, note how "the dot" (`.`) is required as the second argument to give the partial context. You can read more about "the dot" in the [Hugo templating introduction](/templates/introduction/). {{% /note %}} +{{% note %}} +`` starting with `baseof` is reserved. ([#5373](https://github.com/gohugoio/hugo/issues/5373)) +{{% /note %}} + As shown in the above example directory structure, you can nest your directories within `partials` for better source organization. You only need to call the nested partial's path relative to the `partials` directory: ```