Why I love Jekyll Data Files
summary
Explains how an event site is refactored to use three Jekyll data files (YAML) and Liquid to replace copy paste and hardcoded markup so new meetups and repeated speakers update automatically the meetup index references speakers and videos via site.data.meetups[...] keys and loops, uses assign/capture to shorten long lookups and build conditional CSS URLs, relies on Liquid quirks like truthiness, nil and lack of a not operator, and uses limit/offset to pick latest and previous posts; implementation runs on GitHub Pages with zero budget and works.
AI-written summary · about
chapters (17)
- 0:00Introduction to talk
- 0:44What are Jekyll data files
- 2:56Basic data file usage
- 5:02Liquid templating basics
- 6:04Truthiness in Liquid
- 7:09Control flow in Liquid
- 9:38Iterators in Liquid
- 13:08Custom variables in Liquid
- 14:11Refactoring Singapore CSS
- 16:42Data file structure planning
- 18:51Handling missing data
- 20:16Loop object attributes
- 20:59Using capture in templates
- 21:40Conditional CSS with Liquid
- 23:06Site maintenance with data
- 24:31YAML syntax pitfalls
- 25:14Conclusion and Q&A
