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

Commit

Permalink
Display month for events (#98)
Browse files Browse the repository at this point in the history
Better display of events that span months.
Fixes #71

Signed-off-by: Matt Stratton <[email protected]>
  • Loading branch information
mattstratton authored Jan 12, 2017
1 parent ee66d99 commit a365d10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@
{{ end }}
</a>
<br/>
{{- dateFormat "January 2" .startdate -}}
-
{{- dateFormat "2, 2006" .enddate -}}<br/>
{{- dateFormat "Jan 2" .startdate -}}
&nbsp;-&nbsp;
{{- dateFormat "Jan 2, 2006" .enddate -}}<br/>
<span>{{ .city }}</span>
<br/>
{{ if .description }}
Expand Down
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 @@ <h4 class="left-nav-months">{{ dateFormat "January" .startdate }}</h4>
{{- $.Scratch.Set "month-displayed" "true" -}}
{{- end -}}
<a href = "/events/{{ .name }}/welcome" class = "left-nav-event">
{{ dateFormat "2" .startdate }}-{{ dateFormat "2" .enddate }}
{{ dateFormat "Jan 2" .startdate }} - {{ dateFormat "Jan 2" .enddate }}
{{ .city }}
</a><br />
{{- end -}}
Expand Down

0 comments on commit a365d10

Please sign in to comment.