Bugfix

Fixed front matter of index_by_date, and fix logic of index