File tree 18 files changed +50
-18
lines changed
docs/developer-guide/theme/finder-apis
version-2.16/developer-guide/theme/finder-apis
version-2.17/developer-guide/theme/finder-apis
version-2.18/developer-guide/theme/finder-apis
version-2.19/developer-guide/theme/finder-apis
version-2.20/developer-guide/theme/finder-apis
18 files changed +50
-18
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ import CategoryTreeVo from "../vo/_CategoryTreeVo.md"
12
12
categoryFinder .getByName (name)
13
13
```
14
14
15
+ :::info 提示
16
+ 通常建议配合 [ 主题设置] ( ../settings.md ) 和 [ 分类选择器] ( ../../form-schema.md#categoryselect ) 使用,让用户自行选择所需的分类。
17
+ :::
18
+
15
19
### 描述
16
20
17
21
根据 ` metadata.name ` 获取文章分类。
@@ -38,6 +42,10 @@ categoryFinder.getByName(name)
38
42
categoryFinder .getByNames (names)
39
43
```
40
44
45
+ :::info 提示
46
+ 通常建议配合 [ 主题设置] ( ../settings.md ) 和 [ 分类选择器] ( ../../form-schema.md#categoryselect ) 使用,让用户自行选择所需的分类。
47
+ :::
48
+
41
49
### 描述
42
50
43
51
根据一组 ` metadata.name ` 获取文章分类。
@@ -53,7 +61,7 @@ List\<[#CategoryVo](#categoryvo)\>
53
61
### 示例
54
62
55
63
``` html
56
- <div th:with =" categories = ${categoryFinder.getByNames([ 'category-foo', 'category-bar'] )}" >
64
+ <div th:with =" categories = ${categoryFinder.getByNames({ 'category-foo', 'category-bar'} )}" >
57
65
<a th:each =" category : ${categories}" th:href =" @{${category.status.permalink}}" th:text =" ${category.spec.displayName}" ></a >
58
66
</div >
59
67
```
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ List\<[#ContributorVo](#contributorvo)\>
52
52
### 示例
53
53
54
54
``` html
55
- <div th:with =" contributors = ${contributorFinder.getContributors([ 'contributor-foo, 'contributor-bar'] )}" >
55
+ <div th:with =" contributors = ${contributorFinder.getContributors({ 'contributor-foo, 'contributor-bar'} )}" >
56
56
<span th:each =" contributor : ${contributors}" th:text =" ${contributor.displayName}" ></span >
57
57
</div >
58
58
```
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ import TagVo from "../vo/_TagVo.md"
11
11
tagFinder .getByName (name)
12
12
```
13
13
14
+ :::info 提示
15
+ 通常建议配合 [ 主题设置] ( ../settings.md ) 和 [ 标签选择器] ( ../../form-schema.md#tagselect ) 使用,让用户自行选择所需的标签。
16
+ :::
17
+
14
18
### 描述
15
19
16
20
根据 ` metadata.name ` 获取标签。
@@ -37,6 +41,10 @@ tagFinder.getByName(name)
37
41
tagFinder .getByNames (names)
38
42
```
39
43
44
+ :::info 提示
45
+ 通常建议配合 [ 主题设置] ( ../settings.md ) 和 [ 标签选择器] ( ../../form-schema.md#tagselect ) 使用,让用户自行选择所需的标签。
46
+ :::
47
+
40
48
### 描述
41
49
42
50
根据一组 ` metadata.name ` 获取标签。
@@ -52,7 +60,7 @@ List\<[#TagVo](#tagvo)\>
52
60
### 示例
53
61
54
62
``` html
55
- <div th:with =" tags = ${tagFinder.getByNames([ 'tag-foo', 'tag-bar'] )}" >
63
+ <div th:with =" tags = ${tagFinder.getByNames({ 'tag-foo', 'tag-bar'} )}" >
56
64
<a th:each =" tag : ${tags}" th:href =" @{${tag.status.permalink}}" th:text =" ${tag.spec.displayName}" ></a >
57
65
</div >
58
66
```
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ List\<[#CategoryVo](#categoryvo)\>
53
53
### 示例
54
54
55
55
``` html
56
- <div th:with =" categories = ${categoryFinder.getByNames([ 'category-foo', 'category-bar'] )}" >
56
+ <div th:with =" categories = ${categoryFinder.getByNames({ 'category-foo', 'category-bar'} )}" >
57
57
<a th:each =" category : ${categories}" th:href =" @{${category.status.permalink}}" th:text =" ${category.spec.displayName}" ></a >
58
58
</div >
59
59
```
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ List\<[#ContributorVo](#contributorvo)\>
52
52
### 示例
53
53
54
54
``` html
55
- <div th:with =" contributors = ${contributorFinder.getContributors([ 'contributor-foo, 'contributor-bar'] )}" >
55
+ <div th:with =" contributors = ${contributorFinder.getContributors({ 'contributor-foo, 'contributor-bar'} )}" >
56
56
<span th:each =" contributor : ${contributors}" th:text =" ${contributor.displayName}" ></span >
57
57
</div >
58
58
```
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ List\<[#TagVo](#tagvo)\>
52
52
### 示例
53
53
54
54
``` html
55
- <div th:with =" tags = ${tagFinder.getByNames([ 'tag-foo', 'tag-bar'] )}" >
55
+ <div th:with =" tags = ${tagFinder.getByNames({ 'tag-foo', 'tag-bar'} )}" >
56
56
<a th:each =" tag : ${tags}" th:href =" @{${tag.status.permalink}}" th:text =" ${tag.spec.displayName}" ></a >
57
57
</div >
58
58
```
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ List\<[#CategoryVo](#categoryvo)\>
53
53
### 示例
54
54
55
55
``` html
56
- <div th:with =" categories = ${categoryFinder.getByNames([ 'category-foo', 'category-bar'] )}" >
56
+ <div th:with =" categories = ${categoryFinder.getByNames({ 'category-foo', 'category-bar'} )}" >
57
57
<a th:each =" category : ${categories}" th:href =" @{${category.status.permalink}}" th:text =" ${category.spec.displayName}" ></a >
58
58
</div >
59
59
```
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ List\<[#ContributorVo](#contributorvo)\>
52
52
### 示例
53
53
54
54
``` html
55
- <div th:with =" contributors = ${contributorFinder.getContributors([ 'contributor-foo, 'contributor-bar'] )}" >
55
+ <div th:with =" contributors = ${contributorFinder.getContributors({ 'contributor-foo, 'contributor-bar'} )}" >
56
56
<span th:each =" contributor : ${contributors}" th:text =" ${contributor.displayName}" ></span >
57
57
</div >
58
58
```
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ List\<[#TagVo](#tagvo)\>
52
52
### 示例
53
53
54
54
``` html
55
- <div th:with =" tags = ${tagFinder.getByNames([ 'tag-foo', 'tag-bar'] )}" >
55
+ <div th:with =" tags = ${tagFinder.getByNames({ 'tag-foo', 'tag-bar'} )}" >
56
56
<a th:each =" tag : ${tags}" th:href =" @{${tag.status.permalink}}" th:text =" ${tag.spec.displayName}" ></a >
57
57
</div >
58
58
```
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ List\<[#CategoryVo](#categoryvo)\>
53
53
### 示例
54
54
55
55
``` html
56
- <div th:with =" categories = ${categoryFinder.getByNames([ 'category-foo', 'category-bar'] )}" >
56
+ <div th:with =" categories = ${categoryFinder.getByNames({ 'category-foo', 'category-bar'} )}" >
57
57
<a th:each =" category : ${categories}" th:href =" @{${category.status.permalink}}" th:text =" ${category.spec.displayName}" ></a >
58
58
</div >
59
59
```
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ List\<[#ContributorVo](#contributorvo)\>
52
52
### 示例
53
53
54
54
``` html
55
- <div th:with =" contributors = ${contributorFinder.getContributors([ 'contributor-foo, 'contributor-bar'] )}" >
55
+ <div th:with =" contributors = ${contributorFinder.getContributors({ 'contributor-foo, 'contributor-bar'} )}" >
56
56
<span th:each =" contributor : ${contributors}" th:text =" ${contributor.displayName}" ></span >
57
57
</div >
58
58
```
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ List\<[#TagVo](#tagvo)\>
52
52
### 示例
53
53
54
54
``` html
55
- <div th:with =" tags = ${tagFinder.getByNames([ 'tag-foo', 'tag-bar'] )}" >
55
+ <div th:with =" tags = ${tagFinder.getByNames({ 'tag-foo', 'tag-bar'} )}" >
56
56
<a th:each =" tag : ${tags}" th:href =" @{${tag.status.permalink}}" th:text =" ${tag.spec.displayName}" ></a >
57
57
</div >
58
58
```
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ List\<[#CategoryVo](#categoryvo)\>
53
53
### 示例
54
54
55
55
``` html
56
- <div th:with =" categories = ${categoryFinder.getByNames([ 'category-foo', 'category-bar'] )}" >
56
+ <div th:with =" categories = ${categoryFinder.getByNames({ 'category-foo', 'category-bar'} )}" >
57
57
<a th:each =" category : ${categories}" th:href =" @{${category.status.permalink}}" th:text =" ${category.spec.displayName}" ></a >
58
58
</div >
59
59
```
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ List\<[#ContributorVo](#contributorvo)\>
52
52
### 示例
53
53
54
54
``` html
55
- <div th:with =" contributors = ${contributorFinder.getContributors([ 'contributor-foo, 'contributor-bar'] )}" >
55
+ <div th:with =" contributors = ${contributorFinder.getContributors({ 'contributor-foo, 'contributor-bar'} )}" >
56
56
<span th:each =" contributor : ${contributors}" th:text =" ${contributor.displayName}" ></span >
57
57
</div >
58
58
```
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ List\<[#TagVo](#tagvo)\>
52
52
### 示例
53
53
54
54
``` html
55
- <div th:with =" tags = ${tagFinder.getByNames([ 'tag-foo', 'tag-bar'] )}" >
55
+ <div th:with =" tags = ${tagFinder.getByNames({ 'tag-foo', 'tag-bar'} )}" >
56
56
<a th:each =" tag : ${tags}" th:href =" @{${tag.status.permalink}}" th:text =" ${tag.spec.displayName}" ></a >
57
57
</div >
58
58
```
Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ import CategoryTreeVo from "../vo/_CategoryTreeVo.md"
12
12
categoryFinder .getByName (name)
13
13
```
14
14
15
+ :::info 提示
16
+ 通常建议配合 [ 主题设置] ( ../settings.md ) 和 [ 分类选择器] ( ../../form-schema.md#categoryselect ) 使用,让用户自行选择所需的分类。
17
+ :::
18
+
15
19
### 描述
16
20
17
21
根据 ` metadata.name ` 获取文章分类。
@@ -38,6 +42,10 @@ categoryFinder.getByName(name)
38
42
categoryFinder .getByNames (names)
39
43
```
40
44
45
+ :::info 提示
46
+ 通常建议配合 [ 主题设置] ( ../settings.md ) 和 [ 分类选择器] ( ../../form-schema.md#categoryselect ) 使用,让用户自行选择所需的分类。
47
+ :::
48
+
41
49
### 描述
42
50
43
51
根据一组 ` metadata.name ` 获取文章分类。
@@ -53,7 +61,7 @@ List\<[#CategoryVo](#categoryvo)\>
53
61
### 示例
54
62
55
63
``` html
56
- <div th:with =" categories = ${categoryFinder.getByNames([ 'category-foo', 'category-bar'] )}" >
64
+ <div th:with =" categories = ${categoryFinder.getByNames({ 'category-foo', 'category-bar'} )}" >
57
65
<a th:each =" category : ${categories}" th:href =" @{${category.status.permalink}}" th:text =" ${category.spec.displayName}" ></a >
58
66
</div >
59
67
```
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ List\<[#ContributorVo](#contributorvo)\>
52
52
### 示例
53
53
54
54
``` html
55
- <div th:with =" contributors = ${contributorFinder.getContributors([ 'contributor-foo, 'contributor-bar'] )}" >
55
+ <div th:with =" contributors = ${contributorFinder.getContributors({ 'contributor-foo, 'contributor-bar'} )}" >
56
56
<span th:each =" contributor : ${contributors}" th:text =" ${contributor.displayName}" ></span >
57
57
</div >
58
58
```
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ import TagVo from "../vo/_TagVo.md"
11
11
tagFinder .getByName (name)
12
12
```
13
13
14
+ :::info 提示
15
+ 通常建议配合 [ 主题设置] ( ../settings.md ) 和 [ 标签选择器] ( ../../form-schema.md#tagselect ) 使用,让用户自行选择所需的标签。
16
+ :::
17
+
14
18
### 描述
15
19
16
20
根据 ` metadata.name ` 获取标签。
@@ -37,6 +41,10 @@ tagFinder.getByName(name)
37
41
tagFinder .getByNames (names)
38
42
```
39
43
44
+ :::info 提示
45
+ 通常建议配合 [ 主题设置] ( ../settings.md ) 和 [ 标签选择器] ( ../../form-schema.md#tagselect ) 使用,让用户自行选择所需的标签。
46
+ :::
47
+
40
48
### 描述
41
49
42
50
根据一组 ` metadata.name ` 获取标签。
@@ -52,7 +60,7 @@ List\<[#TagVo](#tagvo)\>
52
60
### 示例
53
61
54
62
``` html
55
- <div th:with =" tags = ${tagFinder.getByNames([ 'tag-foo', 'tag-bar'] )}" >
63
+ <div th:with =" tags = ${tagFinder.getByNames({ 'tag-foo', 'tag-bar'} )}" >
56
64
<a th:each =" tag : ${tags}" th:href =" @{${tag.status.permalink}}" th:text =" ${tag.spec.displayName}" ></a >
57
65
</div >
58
66
```
You can’t perform that action at this time.
0 commit comments