Merge pull request #1508 from mnjm/list-doc-fixup

list shortcode doc fix
This commit is contained in:
Nuno Coração 2024-06-03 23:13:36 +01:00 committed by GitHub
commit 9bcab20864
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 8 deletions

View file

@ -496,7 +496,7 @@ When life gives you lemons, make lemonade.
| `value` | The value that will need to match the parameter defined in `where` for the query of articles e.g. for `where` == `Type` a valid value could be `sample` | | `value` | The value that will need to match the parameter defined in `where` for the query of articles e.g. for `where` == `Type` a valid value could be `sample` |
{{< alert >}} {{< alert >}}
The `where` and `value` values are used in the following query `where .Site.RegularPages $where $value` in the code of the shortcode. Check [Hugo docs](https://gohugo.io/variables/page/) to learn more about which parameters are available to use. The `where` and `value` values are used in the following query `where .Site.RegularPages $where $value` in the code of the shortcode. Check [Hugo docs](https://gohugo.io/methods/page/) to learn more about which parameters are available to use.
{{</ alert >}} {{</ alert >}}
<!-- prettier-ignore-end --> <!-- prettier-ignore-end -->
@ -512,7 +512,7 @@ The `where` and `value` values are used in the following query `where .Site.Regu
**Example #2:** **Example #2:**
```md ```md
{{</* list title="Samples" cardView=true limit=5 where="Type" value="sample" */>}} {{</* list title="Samples" cardView=true limit=6 where="Type" value="sample" */>}}
``` ```
{{< list title="Samples" cardView=true limit=6 where="Type" value="sample">}} {{< list title="Samples" cardView=true limit=6 where="Type" value="sample">}}

View file

@ -496,7 +496,7 @@ When life gives you lemons, make lemonade.
| `value` | The value that will need to match the parameter defined in `where` for the query of articles e.g. for `where` == `Type` a valid value could be `sample` | | `value` | The value that will need to match the parameter defined in `where` for the query of articles e.g. for `where` == `Type` a valid value could be `sample` |
{{< alert >}} {{< alert >}}
The `where` and `value` values are used in the following query `where .Site.RegularPages $where $value` in the code of the shortcode. Check [Hugo docs](https://gohugo.io/variables/page/) to learn more about which parameters are available to use. The `where` and `value` values are used in the following query `where .Site.RegularPages $where $value` in the code of the shortcode. Check [Hugo docs](https://gohugo.io/methods/page/) to learn more about which parameters are available to use.
{{</ alert >}} {{</ alert >}}
<!-- prettier-ignore-end --> <!-- prettier-ignore-end -->
@ -512,7 +512,7 @@ The `where` and `value` values are used in the following query `where .Site.Regu
**Example #2:** **Example #2:**
```md ```md
{{</* list title="Samples" cardView=true limit=5 where="Type" value="sample" */>}} {{</* list title="Samples" cardView=true limit=6 where="Type" value="sample" */>}}
``` ```
{{< list title="Samples" cardView=true limit=6 where="Type" value="sample">}} {{< list title="Samples" cardView=true limit=6 where="Type" value="sample">}}

View file

@ -496,7 +496,7 @@ When life gives you lemons, make lemonade.
| `value` | The value that will need to match the parameter defined in `where` for the query of articles e.g. for `where` == `Type` a valid value could be `sample` | | `value` | The value that will need to match the parameter defined in `where` for the query of articles e.g. for `where` == `Type` a valid value could be `sample` |
{{< alert >}} {{< alert >}}
The `where` and `value` values are used in the following query `where .Site.RegularPages $where $value` in the code of the shortcode. Check [Hugo docs](https://gohugo.io/variables/page/) to learn more about which parameters are available to use. The `where` and `value` values are used in the following query `where .Site.RegularPages $where $value` in the code of the shortcode. Check [Hugo docs](https://gohugo.io/methods/page/) to learn more about which parameters are available to use.
{{</ alert >}} {{</ alert >}}
<!-- prettier-ignore-end --> <!-- prettier-ignore-end -->
@ -512,7 +512,7 @@ The `where` and `value` values are used in the following query `where .Site.Regu
**Example #2:** **Example #2:**
```md ```md
{{</* list title="Samples" cardView=true limit=5 where="Type" value="sample" */>}} {{</* list title="Samples" cardView=true limit=6 where="Type" value="sample" */>}}
``` ```
{{< list title="Samples" cardView=true limit=6 where="Type" value="sample">}} {{< list title="Samples" cardView=true limit=6 where="Type" value="sample">}}

View file

@ -497,7 +497,7 @@ When life gives you lemons, make lemonade.
| `value` | 需要与 `where` 中定义的参数匹配的值,以进行文章查询,例如对于 `where` == `Type`,可以找到文章 `sample` | | `value` | 需要与 `where` 中定义的参数匹配的值,以进行文章查询,例如对于 `where` == `Type`,可以找到文章 `sample` |
{{< alert >}} {{< alert >}}
`where``value` 值用于简码中进行以下格式的查询 `where .Site.RegularPages $where $value` 。检查 [Hugo 文档](https://gohugo.io/variables/page/) 以了解有关可用参数的更多信息。 `where``value` 值用于简码中进行以下格式的查询 `where .Site.RegularPages $where $value` 。检查 [Hugo 文档](https://gohugo.io/methods/page/) 以了解有关可用参数的更多信息。
{{</ alert >}} {{</ alert >}}
<!-- prettier-ignore-end --> <!-- prettier-ignore-end -->
@ -513,7 +513,7 @@ When life gives you lemons, make lemonade.
**例 2:** **例 2:**
```md ```md
{{</* list title="Samples" cardView=true limit=5 where="Type" value="sample" */>}} {{</* list title="Samples" cardView=true limit=6 where="Type" value="sample" */>}}
``` ```
{{< list title="Samples" cardView=true limit=6 where="Type" value="sample">}} {{< list title="Samples" cardView=true limit=6 where="Type" value="sample">}}