diff options
author | Serghei Cebotari <serghei@cebotari.ru> | 2023-11-28 23:52:43 +0300 |
---|---|---|
committer | Serghei Cebotari <serghei@cebotari.ru> | 2023-11-28 23:52:43 +0300 |
commit | 45dc9313719539a8b6fc8762c4f260741f1ef960 (patch) | |
tree | 54e00e658355b9f964d86037cbded6fefa6a7c0a /layouts | |
parent | 7f515cdc85ef7d8585429009d4e44d455c1afda9 (diff) |
Add dates to projects
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/body/projects.html | 5 |
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> |