aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorSerghei Cebotari <serghei@cebotari.ru>2023-11-28 23:52:43 +0300
committerSerghei Cebotari <serghei@cebotari.ru>2023-11-28 23:52:43 +0300
commit45dc9313719539a8b6fc8762c4f260741f1ef960 (patch)
tree54e00e658355b9f964d86037cbded6fefa6a7c0a /layouts
parent7f515cdc85ef7d8585429009d4e44d455c1afda9 (diff)
Add dates to projects
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/body/projects.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/layouts/partials/body/projects.html b/layouts/partials/body/projects.html
index 98d9b6c..9897226 100644
--- a/layouts/partials/body/projects.html
+++ b/layouts/partials/body/projects.html
@@ -8,7 +8,10 @@
<td><strong>{{ .Title }} </strong><span>|</span>
<em>{{ range $i, $e := .Params.tags -}}{{- if $i -}}, {{ end -}}{{ . }}{{- end -}}</em>
</td>
- <td style="text-align: right;">June 2020 – Present</td>
+ <td style="text-align: right;">
+ {{ with .Params.start_date }}{{ time.Format "Jan 2006" . }}{{ end }} –
+ {{ with .Params.end_date }}{{ time.Format "Jan 2006" . }}{{ else }}{{ "Present" }}{{ end }}
+ </td>
</tr>
</tbody>
</table>