container.training icon indicating copy to clipboard operation
container.training copied to clipboard

support two-day events on front page

Open bridgetkromhout opened this issue 7 years ago • 3 comments

https://github.com/jpetazzo/container.training/commit/a2531a0c632c6619a60b93615223939a1d03838d

If we edit the site on day 1 of a 2-day event (possibly after UTC has switched to the next day) the two-day events are no longer on the front page.

bridgetkromhout avatar Oct 01 '18 02:10 bridgetkromhout

I think I'm going to add support for the date field to be a 2-element array, and when it is, then it'll be interpreted as begin/end.

Or do we want a N-element array for stuff that spans/repeats multiple days/times?

Thoughts?

jpetazzo avatar Oct 22 '18 23:10 jpetazzo

hmm, you're the one who runs multi-day events - do you think you'll ever have events that aren't over a date range but instead are on non-consecutive days?

bridgetkromhout avatar Nov 07 '18 21:11 bridgetkromhout

Non-consecutive things do happen; e.g. I can do a two-day training Monday-Tuesday, and a repeat of the same thing on Thursday-Friday.

(Internal mulling over)

I think I'll go with a 2-element array, that's simple enough. And there are very few cases anyway, so even if I/we need something else later, it'll be easy enough to change the YAML file.

Thanks for finding that bug in any case! Without you I wouldn't have thought about this.

jpetazzo avatar Nov 07 '18 22:11 jpetazzo