mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
Update partials.md
This commit is contained in:
committed by
GitHub
parent
9f4bd00236
commit
55467e7c83
@@ -78,7 +78,7 @@ This means the partial will *only* be able to access those variables. The partia
|
||||
|
||||
## Returning a value from a Partial
|
||||
|
||||
In addition to outputting markup, partials can be used to return a value of any type. In order to return a value, a partial must include a lone `return` statement.
|
||||
In addition to outputting markup, partials can be used to return a value of any type. In order to return a value, a partial must include a lone `return` statement _at the end of the partial_.
|
||||
|
||||
### Example GetFeatured
|
||||
|
||||
|
||||
Reference in New Issue
Block a user