Time for another big update to BluestNight! In this episode, the events system has been overhauled to look nicer and provide more functionality than previously. Also, a some other semantic changes to watch out for while updating.
Events have been changed from data to content files, to better give visitors information about any events held by the owner of the site. Visitors can now visit pages for previous events and see what is coming past the five most immediate events.
The previous method of doing events involved data files with information relating to the events. Those data files were then parsed and assembled into an iCalendar file; the five most immediate upcoming events were also put into the sidebar of the website for easy viewing.
The iCalendar file and sidebar reminders are still there, but the sidebar widget has been reformatted slightly to display more information in a clearer fashion. Because events are now content pages, the sidebar widget now also links each event preview to the page for that event.
Events now include the following information:
- Title (same as page title)
- Start/end date and time
- “Doors open” time
- All other page options
The event list page defaults to sorting events by start date, with the latest (greatest date value) listed first.
Another possibly breaking change in BluestNight is the assumption that section
names are plural, i.e.
/posts/. This should only affect the
two sections used as examples, as BluestNight doesn’t care about the others.
In an effort to be backwards-compatible, the home page and recent posts widget
will still show content from
/posts/ will be preferred if
The reason for this change is to try to align more closely to Hugo’s convention of sections and content types being pluralized.
As well as the above, the page metadata section has seen some love, with the following changes:
- Metadata labels (“Published”, “Last Updated”, “Estimated Reading Time”) have been bolded to provide contrast between them and the metadata itself.
- “Last Updated” is only displayed if the
.Lastmoddate is different from the normal
- “Estimated Reading Time” received its own very special book icon.
Other miscellaneous changes: