about summary refs log tree commit diff
path: root/layouts
diff options
context:
space:
mode:
authorNgô Ngọc Đức Huy <huyngo@disroot.org>2021-08-24 21:53:43 +0700
committerNgô Ngọc Đức Huy <huyngo@disroot.org>2021-08-24 21:53:53 +0700
commitf80c310c0f9d38f19255a3555a55bde1cd535c87 (patch)
treeabf76e6648ecee5357cbecf086d21d023312958a /layouts
parent1f8681eae557f4963c2b44ce5927222d0bfbaf82 (diff)
downloadblog-f80c310c0f9d38f19255a3555a55bde1cd535c87.tar.gz
Add projects section
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/project.html20
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>