mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 10:15:49 +00:00
Fix minor typos in "where" function page
This commit is contained in:
1 parent
8e151a93b8
commit
e4336f0627
1 file changed
+2
-2
@@ -101,7 +101,7 @@ You can also put the returned value of the `where` clauses into a variable:
|
||||
|
||||
## Using `where` with `first`
|
||||
|
||||
The following grabs the first five content files in `post` using the [default ordering](/templates/lists/) for lists (i.e., `weight => date`):
|
||||
The following ranges through the first five content files in the `post` section using the [default ordering](/templates/lists/) for lists (i.e., `weight => date`):
|
||||
|
||||
{{% code file="where-with-first.html" %}}
|
||||
```html
|
||||
@@ -113,7 +113,7 @@ The following grabs the first five content files in `post` using the [default or
|
||||
|
||||
## Nesting `where` Clauses
|
||||
|
||||
You can also nest `where` clauses to drill down on lists of content by more than one parameter. The following first grabs all pages in the "blog" section and then ranges through the result of the first `where` clause and finds all pages that are *not* featured:
|
||||
You can also nest `where` clauses to drill down on lists of content by more than one parameter. The following example first grabs all pages in the `blog` section and then ranges through only those pages that are *not* featured:
|
||||
|
||||
```html
|
||||
{{ range where (where .Data.Pages "Section" "blog" ) ".Params.featured" "!=" "true" }}
|
||||
|
||||
Reference in new issue
Block a user