doctype
html(lang="en" ng-app="angularIOApp" itemscope itemtype="http://schema.org/Framework")
  head
    != partial("../_includes/_head-include")

  body(class="l-offset-nav l-offset-side-nav"  ng-controller="AppCtrl")
    != partial("../_includes/_main-nav")
    != partial("_includes/sidenav/_primary")
    != partial("../_includes/_hero")
    != partial("../_includes/_banner")


    if current.path[3] == 'api'
      article(class="l-content-small grid-fluid docs-content")
        != yield

    else
      article(class="l-content-small grid-fluid docs-content")
        != yield

        if current.path[3] == 'guide' && current.path[4]
          != partial("../_includes/_next-item")

    != partial("../_includes/_footer")
    != partial("../_includes/_scripts-include")