Adjust related functions

This commit is contained in:
Joe Mooring 2023-09-26 14:26:10 -07:00 committed by GitHub
parent 4cb1b30fcd
commit 8c8203efa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -10,6 +10,7 @@ namespace: collections
relatedFuncs:
- collections.Append
- collections.Merge
- collections.Slice
signature:
- COLLECTION | collections.Append ELEMENT [ELEMENT]...
- COLLECTION | collections.Append COLLECTION
@ -88,8 +89,6 @@ To create a slice of slices, starting with an empty slice:
{{ $s }} → [[a b] [c d]]
```
Although the elements in the examples above are strings, you can use the `append` function with any data type, including Pages. For example, on the home page of a corporate site, to display links to the two most recent press releases followed by links to the four most recent articles:
```go-html-template

View File

@ -8,6 +8,7 @@ menu:
keywords: []
namespace: collections
relatedFuncs:
- collections.Append
- collections.Apply
- collections.Delimit
- collections.In