- self.data['layout'] = 'default'
- self.data['title'] = content[0].match(/^# (.*)\n$/)[1]
- self.data['slug'] = self.data['title'].match(/^(.*):.*$/)[1]
+ self.data['layout'] = 'page'
+ self.data['title'] = content[0].match(/^#* ?(.*)\n$/)[1]
+ slug = self.data['title'].match(/^([^:]*):.*$/)
+ if slug
+ self.data['slug'] = slug[1]
+ end
+ self.data['sort'] = idx