mirror of
https://github.com/halo-dev/docs.git
synced 2026-02-02 02:02:06 +08:00
fix: wrong example of contributor finder api (#166)
修复关于 Contributor 的 Finder API 示例错误的问题。 /kind documentation Fixes #158 ```release-note None ```
This commit is contained in:
@@ -26,7 +26,7 @@ contributorFinder.getContributor(name)
|
||||
### 示例
|
||||
|
||||
```html
|
||||
<div th:with="contributor = ${contributorFinder.getByName('contributor-foo')}">
|
||||
<div th:with="contributor = ${contributorFinder.getContributor('contributor-foo')}">
|
||||
<h1 th:text="${contributor.displayName}"></h1>
|
||||
</div>
|
||||
```
|
||||
@@ -52,7 +52,7 @@ List<[#Contributor](#contributor)>
|
||||
### 示例
|
||||
|
||||
```html
|
||||
<div th:with="contributors = ${contributorFinder.getByNames(['contributor-foo, 'contributor-bar'])}">
|
||||
<div th:with="contributors = ${contributorFinder.getContributors(['contributor-foo, 'contributor-bar'])}">
|
||||
<span th:each="contributor : ${contributors}" th:text="${contributor.displayName}"></span>
|
||||
</div>
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user