Jade traverses objects in Node.js

  node.js, question

Error message:

clipboard.png

Read config.yml:

function read(file){
 try {
 var doc = yaml.safeLoad(fs.readFileSync(file, 'utf8'));
 console.log(doc);
 return doc;
 } catch (e) {
 console.log(e);
 bracket
 
 bracket

config.yml

db: "mongodb://localhost/blog"
 title: "My Blog"
 nav:
 -Home: ""
 -Directory: ""
 - Github: ""
 -About me: ""

route:

app.get('/', function(req, res, next) {
 service.findAll(function(err, data){
 if(err){
 res.render('db error', err);
 bracket
 var _nav = config.read('./config.yml');
 var Article = {};
 Article.articles = data;  //mongodb data
 Article.nav = _nav.nav;
 res.render('index', Article);
 });
 
 });

index.jade:

extends layout
 
 
 block main
 section.container
 ul.home.post-list
 each item in articles
 li.post-list-item
 article.post-block
 h2.post-title
 a.post-title-link(href="post.html") = item.title
 .post-meta
 .post-time = item.time
 .post-content
 p = item.content
 A. read-more (href = "2015/inline-and-absolute/")-see more-
 
 append scripts
 script(src='/plugin/bower_components/jquery/dist/jquery.min.js')
 script(src='/javascripts/c.js')

layout.jade:

doctype html
 html
 head
 title= title
 meta(charset="utf-8")
 meta(http-equiv="X-UA-Compatible", content="IE=edge")
 meta(name="description", content="")
 meta(name="viewport", content="width=device-width, initial-scale=1")
 link(rel='stylesheet', href='/stylesheets/style.css')
 block head
 body
 header
 a.logo-link(href="/")
 img(src="http://xc66.cc/i/i/xc.jpg")
 ul.nav.nav-list
 each item in nav
 each val, key in item
 li.nav-list-item
 a.nav-list-link.active(href="#{val}", target="_self") #{key}
 block main
 block scripts

Next line, indent!