diff options
Diffstat (limited to 'layouts/_default/project.html')
-rw-r--r-- | layouts/_default/project.html | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/layouts/_default/project.html b/layouts/_default/project.html index 34a04ea..1761cbb 100644 --- a/layouts/_default/project.html +++ b/layouts/_default/project.html @@ -20,8 +20,24 @@ {{ .Params.name }} </a> </dd> - <dt>Authors</dt> - <dd> <a href={{.Params.authorURL}}>{{ .Params.author }}</a></dd> + {{ if isSet .Params "author" }} + <dt>Creator</dt> + {{ if isSet .Params "authorurl" }} + <dd><a href={{.Params.authorURL}}>{{ .Params.author }}</a></dd> + {{ else }} + <dd>{{ .Params.author }}</dd> + {{ end }} + {{ end }} + {{ if isSet .Params "maintainers" }} + <dt>Maintainers</dt> + {{ range $maintainer := .Params.maintainers }} + {{ if isSet $maintainer "URL" }} + <dd><a href={{$maintainer.URL}}>{{ $maintainer.name }}</a></dd> + {{ else }} + <dd>{{ $maintainer.name }}</dd> + {{ end }} + {{ end }} + {{ end }} <dt>Status</dt> <dd>{{ .Params.projectStatus }}</dd> </dl> |