From b44cc42f3aa57597bf65236e420f58e0c39cdb42 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Thu, 27 Oct 2016 17:08:53 -0700 Subject: [PATCH] chore: define alt ng2 layout for top-level pages (#2686) --- public/_layout.jade | 44 +++++++++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 17 deletions(-) diff --git a/public/_layout.jade b/public/_layout.jade index 358f4c1ccd..6f01183b22 100644 --- a/public/_layout.jade +++ b/public/_layout.jade @@ -1,23 +1,33 @@ -doctype html public -html(lang="en" ng-app="angularIOApp" itemscope itemtype="http://schema.org/Framework") - head - != partial("/_includes/_head-include") +if jade2ng + if hero == 'home' + != partial("/_includes/_hero-home") + else + != partial("/_includes/_hero") + != partial("../_includes/_banner") + - var format = autoformat ? 'docs-content' : '' + article(class="l-content #{format}") + != yield +else + doctype html public + html(lang="en" ng-app="angularIOApp" itemscope itemtype="http://schema.org/Framework") + head + != partial("/_includes/_head-include") - body.ng-cloak.l-offset-nav(ng-controller="AppCtrl as appCtrl") - != partial("/_includes/_main-nav") + body.ng-cloak.l-offset-nav(ng-controller="AppCtrl as appCtrl") + != partial("/_includes/_main-nav") - - if hero == 'home' - != partial("/_includes/_hero-home") - else - != partial("/_includes/_hero") + + if hero == 'home' + != partial("/_includes/_hero-home") + else + != partial("/_includes/_hero") - - var format = autoformat ? 'docs-content' : '' + - var format = autoformat ? 'docs-content' : '' - article(class="l-content #{format}") - != yield + article(class="l-content #{format}") + != yield - != partial("/_includes/_footer") - != partial("/_includes/_scripts-include") - != partial("/_includes/_scripts-minimum") \ No newline at end of file + != partial("/_includes/_footer") + != partial("/_includes/_scripts-include") + != partial("/_includes/_scripts-minimum")