+ + At {{ .Params.location.name }} +
+ ++ + On {{ partial "year-relative-date.html" (slice (time.AsTime $timing.starts) "dt-start") }} +
++ + {{ $starts := time.AsTime $timing.starts }} + {{ $duration := ((strings.Substr $timing.duration 2) | strings.ToLower) }} + From {{ $starts.Format "15:04" }} until {{ $starts.Add (time.ParseDuration $duration) | dateFormat "15:04 (MST)" }} ({{ $duration }}) +
+ + {{ if .Params.attending }} ++ + {{ if eq .Params.attending true }}{{ partial "friend.html" "jp.no-emoji" }} is going + {{ else if eq (len .Params.attending) 1 }} + {{ partial "friend.html" (printf "%s.no-emoji" (index .Params.attending 0)) }} is going + {{ else }} + {{ $count := len .Params.attending}} + {{ range $i, $attendee := .Params.attending }} + {{ partial "friend.html" (printf "%s.no-emoji" $attendee) -}} + {{- if eq $i (sub $count 2) }}{{ if gt $count 2 }},{{ end }} and {{ else if lt $i (sub $count 1) }}, {{ end }} + {{ end }} are going + {{ end }} +
+ {{ end }} + ++ + More info on {{ (urls.Parse .Params.link).Host }} +
+