Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugoDocs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'content/en/templates/partials.md')
-rw-r--r--content/en/templates/partials.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/en/templates/partials.md b/content/en/templates/partials.md
index c80c27648..2d1e9edf2 100644
--- a/content/en/templates/partials.md
+++ b/content/en/templates/partials.md
@@ -126,9 +126,9 @@ Only one `return` statement is allowed per partial file.
You can also define partials inline in the template. But remember that template namespace is global, so you need to make sure that the names are unique to avoid conflicts.
```go-html-template
-Value: {{ partial "my-inline-partial" . }}
+Value: {{ partial "my-inline-partial.html" . }}
-{{ define "partials/my-inline-partial" }}
+{{ define "partials/my-inline-partial.html" }}
{{ $value := 32 }}
{{ return $value }}
{{ end }}