Skip to content

Commit

Permalink
fixed dates issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fboehm committed Oct 8, 2021
1 parent ef63dcb commit 686d087
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions layouts/partials/work.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,20 @@

{{ else if eq .type "service" }}
<i class="fa-li fas fa-hand-point-right fa-fw"></i>
<strong>{{ .description }}</strong>, {{ .source }}
(
{{if isset . "date" }}{{ dateFormat "January 2006" .date }}{{ end }}
{{if isset . "start_date" }}{{ dateFormat "January 2006" .start_date }} to {{ dateFormat "January 2006" .end_date }} {{ end }}
)
<strong>{{ .description }}</strong>{{if isset . "source"}}, {{ .source }}{{end}}
{{if isset . "date" }} ({{ dateFormat "January 2006" .date }}) {{ end }}
{{if isset . "start_date" }}
{{if isset . "end_date" }}
({{ dateFormat "January 2006" .start_date }} to {{ dateFormat "January 2006" .end_date }})
{{ end }}
{{if not (isset . "end_date")}}
({{ dateFormat "January 2006" .start_date }} to present)
{{end}}

{{end}}
{{end}}
{{ if isset . "exurl" }}&nbsp;<a href="{{ .exurl }}" class="is-smaller"><i class="fas fa-link fa-fw"></i></a>{{ end }}

{{ end }}

{{if isset . "long_description" }}
&nbsp;<a data-kube="toggle" data-target="#desc-{{ .name }}" class="is-hidden-print"><i class="fas fa-angle-down fa-fw"></i></a>
Expand Down

0 comments on commit 686d087

Please sign in to comment.