aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/sections/education.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/sections/education.html')
-rw-r--r--layouts/partials/sections/education.html17
1 files changed, 15 insertions, 2 deletions
diff --git a/layouts/partials/sections/education.html b/layouts/partials/sections/education.html
index 4ea693d..36a30c7 100644
--- a/layouts/partials/sections/education.html
+++ b/layouts/partials/sections/education.html
@@ -11,8 +11,21 @@
<td><em>{{ with .Params.degree}}{{ . }}{{ end }}</em>
</td>
<td class="align-right"><em>
- {{ with .Params.start_date }}{{ time.Format "Jan 2006" . }}{{ end }} –
- {{ with .Params.end_date }}{{ time.Format "Jan 2006" . }}{{ else }}{{ "Present" }}{{ end }}</em>
+ {{ 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 }}</em>
</td>
</tr>
{{ end }}