Skip to content
This repository has been archived by the owner on Jul 21, 2019. It is now read-only.

Commit

Permalink
Merge pull request #677 from devopsdays/issue676
Browse files Browse the repository at this point in the history
displays single-day events correctly in front page sidebar
  • Loading branch information
mattstratton authored Nov 11, 2018
2 parents dc9ae78 + b19fbd2 commit 15efaa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/partials/future.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h3 class="left-nav-year">{{ dateFormat "2006" .startdate }}</h3>
<h4 class="left-nav-months">{{ dateFormat "January" .startdate }}</h4>
{{- $.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 -}}
<a href = "{{ (printf "events/%s" .name ) | absURL }}" class = "left-nav-event">
{{ dateFormat "Jan 2" .startdate }} - {{ dateFormat "2" .enddate }}:
Expand Down

0 comments on commit 15efaa8

Please sign in to comment.