extends ../layouts/page

include ../mixins/post

block article-nav
  .card
    .card-block
      .card-title
        i.fa.fa-road.m-r-1
        span 睡吧指南导航
    .list-group.list-group-flush
      each indice in indices
        if !indice.tutorialCount
          a.list-group-item(href='/tutorial/' + indice.key, class=(post && post.key == indice.key ? 'active': ''))
            i.fa.fa-file-text-o.m-r-1
            =indice.title
        else if indice.tutorialCount > 0
          a.list-group-item(href='/tutorial/categories/' + indice.key, class=(category && category.key == indice.key ? 'active': ''))
            i.fa.fa-tag.m-r-1
            =indice.name

block article
  if post
    +content-post(post, comments)
  else if posts
    +content-posts(category, posts)
  else
    h2 无效的内容
extends ../layouts/page

include ../mixins/post

block article-nav
  .card
    .card-block
      .card-title
        i.fa.fa-road.m-r-1
        span 睡吧指南导航
    .list-group.list-group-flush
      each indice in indices
        if !indice.tutorialCount
          a.list-group-item(href='/tutorial/' + indice.key, class=(post && post.key == indice.key ? 'active': ''))
            i.fa.fa-file-text-o.m-r-1
            =indice.title
        else if indice.tutorialCount > 0
          a.list-group-item(href='/tutorial/categories/' + indice.key, class=(category && category.key == indice.key ? 'active': ''))
            i.fa.fa-tag.m-r-1
            =indice.name

block article
  if post
    if category && category.key
      .nav-back.m-b-2.m-t-1
        a.btn.btn-link(href='/tutorial/categories/' + category.key) 
          i.fa.fa-chevron-left
          span.m-l-1 #{category.name}
    +content-post(post, comments)
  else if posts
    +content-posts(category, posts)
  else
    h2 无效的内容
Add back to upper level feature
Add back to upper level feature
