extends _base

block main
  .container
    != partial('_nav')

    main.content
      if current.path[1] === "index"
        != yield

      else
        if current.path[0] === "blog"
          //- Show blog post
          if current.path[1] === "posts"
            != partial("/blog/_blog")
          else
            //- show blog teaser
            != yield


extends _base

block main
  .container
    != partial('_nav')

    main.content
      if current.path[1] === "index" || current.source === "index"
        != yield

      else
        if current.path[0] === "blog"
          //- Show blog post
          if current.path[1] === "posts"
            != partial("/blog/_blog")
          else
            //- show blog teaser
            != yield


Check current.source in order to display homepage
Check current.source in order to display homepage
