Use date instead of data[‘date’]

Using date prevents errors when posts do not explicitly have a date in
their front-matter.