mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 20:14:58 +00:00
Adjust related functions
This commit is contained in:
1 parent
4cb1b30fcd
commit
8c8203efa0
2 files changed
+2
-2
No files matched your search
@@ -10,6 +10,7 @@ namespace: collections
|
|||||||
relatedFuncs:
|
relatedFuncs:
|
||||||
- collections.Append
|
- collections.Append
|
||||||
- collections.Merge
|
- collections.Merge
|
||||||
|
- collections.Slice
|
||||||
signature:
|
signature:
|
||||||
- COLLECTION | collections.Append ELEMENT [ELEMENT]...
|
- COLLECTION | collections.Append ELEMENT [ELEMENT]...
|
||||||
- COLLECTION | collections.Append COLLECTION
|
- COLLECTION | collections.Append COLLECTION
|
||||||
@@ -88,8 +89,6 @@ To create a slice of slices, starting with an empty slice:
|
|||||||
{{ $s }} → [[a b] [c d]]
|
{{ $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:
|
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
|
```go-html-template
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ menu:
|
|||||||
keywords: []
|
keywords: []
|
||||||
namespace: collections
|
namespace: collections
|
||||||
relatedFuncs:
|
relatedFuncs:
|
||||||
|
- collections.Append
|
||||||
- collections.Apply
|
- collections.Apply
|
||||||
- collections.Delimit
|
- collections.Delimit
|
||||||
- collections.In
|
- collections.In
|
||||||
|
|||||||
Reference in new issue
Block a user