diff --git a/layouts/partials/future.html b/layouts/partials/future.html index f4afe49c0..f2036ac08 100644 --- a/layouts/partials/future.html +++ b/layouts/partials/future.html @@ -18,7 +18,7 @@

{{ dateFormat "2006" .startdate }}

{{ dateFormat "January" .startdate }}

{{- $.Scratch.Set "month-displayed" "true" -}} {{- end -}} - {{- if ne .startdate .enddate }} + {{- if or (ne (time .startdate).Month (time .enddate).Month) (ne (time .startdate).Day (time .enddate).Day) -}} {{- if eq (time .startdate).Month (time .enddate).Month -}} {{ dateFormat "Jan 2" .startdate }} - {{ dateFormat "2" .enddate }}: