You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.1 KiB

title description
作者 作者 - ContributorFinder

import Contributor from "../vo/Contributor.md"

getContributor(name)

contributorFinder.getContributor(name)

描述

根据 metadata.name 获取作者。

参数

  1. name:string - 作者的唯一标识 metadata.name

返回值

#Contributor

示例

<div th:with="contributor = ${contributorFinder.getContributor('contributor-foo')}">
  <h1 th:text="${contributor.displayName}"></h1>
</div>

getContributors(names)

contributorFinder.getContributors(names)

描述

根据一组 metadata.name 获取作者。

参数

  1. names:List<string> - 作者的唯一标识 metadata.name 的集合。

返回值

List<#Contributor>

示例

<div th:with="contributors = ${contributorFinder.getContributors(['contributor-foo, 'contributor-bar'])}">
  <span th:each="contributor : ${contributors}" th:text="${contributor.displayName}"></span>
</div>

类型定义

Contributor