diff options
Diffstat (limited to 'layouts/partials/sections/experience.html')
-rw-r--r-- | layouts/partials/sections/experience.html | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/layouts/partials/sections/experience.html b/layouts/partials/sections/experience.html index f813a54..5991c8a 100644 --- a/layouts/partials/sections/experience.html +++ b/layouts/partials/sections/experience.html @@ -6,8 +6,21 @@ <tr> <td><strong>{{ .Title }}</strong></td> <td class="align-right"> - {{ with .Params.start_date }}{{ time.Format "Jan 2006" . }}{{ end }} – - {{ with .Params.end_date }}{{ time.Format "Jan 2006" . }}{{ else }}{{ "Present" }}{{ end }} + {{ with .Params.start_date }} + {{ if le ( len (time.Format "January" .)) 4}} + {{ time.Format "January 2006" . }} + {{ else }} + {{ time.Format "Jan. 2006" . }} + {{ end }} + {{ end }} – + {{ with .Params.end_date }} + {{ if le ( len (time.Format "January" .)) 4}} + {{ time.Format "January 2006" . }} + {{ else }} + {{ time.Format "Jan. 2006" . }} + {{ end }} + {{ else }}{{ "Present" }} + {{ end }} </td> </tr> <tr> |