This post is a test for a new feature.

  • it’s now possible to specify a sighting date separately from a post date
  • this is per-location

This line should assign a sighting date for a location in order of specificity, falling back to the post date if needed.

sighting_date = (location['sighting-date'] || post.data['sighting-date']) || post.date

There are three places where the post date is used:

  • adding post data to @post_index (list of posts for each bird)
  • adding post data to @locationposts (list of posts for each location)
  • additional collections (again it’s a list of posts)

So sighting_date is not actually going to be used for anything at this point.

However, it is now available for including in e.g.roundup posts.