-
Notifications
You must be signed in to change notification settings - Fork 670
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create data file format for event #9
Comments
After fighting a bit with date comparison in hugo, and combined with #30, I think that another field needs to be added called Suggestions welcome as to what the values should be... |
I'm also still bikeshedding with myself about TOML vs YAML and have gone back and forth at least twice in implementation on this :) |
from what I've stumbled (and saw you did as well), it's YEARCITY.yml/toml as Regarding #30, can events without dates be in past? Regarding yaml vs toml - I currently prefer yaml, since it looks a lot cleaner (no |
Per @bridgetkromhout, events can be posted before dates are set. So events without dates will be future, not past. Since Hugo doesn't like dates without times, etc, I've been using the "status" key in the event YAML file to determine past or current/future. This gives a bit more flexibility as to when events should be archived, etc. |
In that case, maybe instead of I might over thinking it as well. |
The problem with using the date to decide if it's a current or past event is that hugo doesn't like dates without times, and that's adding overhead to the person creating the file to add some faked up timestamp. But we might be able to code around it. I think that you could also just assume if there is not date, it's a future event. Let's put it this way - if we can handle the datetime issue in datafiles from hugo, then this becomes a solved problem. Reference: https://discuss.gohugo.io/t/trying-to-filter-data-files-based-upon-a-date-field/2114 |
Great, I'll check that reference. On Sun, Nov 22, 2015 at 6:05 PM, Matt Stratton notifications@github.com
|
I think this is basically resolved. Discussion can continue in #133 |
[MVD-2019] Add sponsors and change redhat icon
Adds new sponsor, adds new organizer
File should live in
data/events
and be named YEAR-CITY.ymlShould contain various items such as sponsors, twitter, etc, that will drive lower level pages
The text was updated successfully, but these errors were encountered: