mirror of
https://github.com/gohugoio/hugo.git
synced 2026-09-01 19:22:38 +00:00
Fix signatures
This commit is contained in:
@@ -12,7 +12,9 @@ relatedFuncs:
|
||||
- urls.AbsURL
|
||||
- urls.RelLangURL
|
||||
- urls.RelURL
|
||||
signature: [absLangURL INPUT]
|
||||
signature:
|
||||
- urls.AbsLangURL INPUT
|
||||
- absLangURL INPUT
|
||||
---
|
||||
|
||||
Use this function with both monolingual and multilingual configurations. The URL returned by this function depends on:
|
||||
|
||||
@@ -12,7 +12,9 @@ relatedFuncs:
|
||||
- urls.AbsURL
|
||||
- urls.RelLangURL
|
||||
- urls.RelURL
|
||||
signature: [absURL INPUT]
|
||||
signature:
|
||||
- urls.AbsURL INPUT
|
||||
- absURL INPUT
|
||||
---
|
||||
|
||||
With multilingual configurations, use the [`absLangURL`] function instead. The URL returned by this function depends on:
|
||||
|
||||
@@ -11,7 +11,9 @@ relatedFuncs:
|
||||
- collections.After
|
||||
- collections.First
|
||||
- collections.Last
|
||||
signature: [after INDEX COLLECTION]
|
||||
signature:
|
||||
- collections.After INDEX COLLECTION
|
||||
- after INDEX COLLECTION
|
||||
---
|
||||
|
||||
The following shows `after` being used in conjunction with the [`slice` function][slice]:
|
||||
|
||||
@@ -11,7 +11,9 @@ relatedFuncs:
|
||||
- collections.After
|
||||
- collections.First
|
||||
- collections.Last
|
||||
signature: [first LIMIT COLLECTION]
|
||||
signature:
|
||||
- collections.First LIMIT COLLECTION
|
||||
- first LIMIT COLLECTION
|
||||
---
|
||||
|
||||
`first` works in a similar manner to the [`limit` keyword in
|
||||
|
||||
@@ -11,7 +11,9 @@ relatedFuncs:
|
||||
- collections.After
|
||||
- collections.First
|
||||
- collections.Last
|
||||
signature: [last INDEX COLLECTION]
|
||||
signature:
|
||||
- collections.Last INDEX COLLECTION
|
||||
- last INDEX COLLECTION
|
||||
---
|
||||
|
||||
```go-html-template
|
||||
|
||||
@@ -12,7 +12,9 @@ relatedFuncs:
|
||||
- urls.AbsURL
|
||||
- urls.RelLangURL
|
||||
- urls.RelURL
|
||||
signature: [relLangURL INPUT]
|
||||
signature:
|
||||
- urls.RelLangURL INPUT
|
||||
- relLangURL INPUT
|
||||
---
|
||||
|
||||
Use this function with both monolingual and multilingual configurations. The URL returned by this function depends on:
|
||||
|
||||
@@ -12,7 +12,9 @@ relatedFuncs:
|
||||
- urls.AbsURL
|
||||
- urls.RelLangURL
|
||||
- urls.RelURL
|
||||
signature: [relURL INPUT]
|
||||
signature:
|
||||
- urls.RelURL INPUT
|
||||
- relURL INPUT
|
||||
---
|
||||
|
||||
With multilingual configurations, use the [`relLangURL`] function instead. The URL returned by this function depends on:
|
||||
|
||||
Reference in New Issue
Block a user