Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit b44cc42

Browse files
chalinfilipesilva
authored andcommitted
chore: define alt ng2 layout for top-level pages (#2686)
1 parent c426e57 commit b44cc42

File tree

1 file changed

+27
-17
lines changed

1 file changed

+27
-17
lines changed

public/_layout.jade

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,33 @@
1-
doctype html public
2-
html(lang="en" ng-app="angularIOApp" itemscope itemtype="http://schema.org/Framework")
3-
head
4-
!= partial("/_includes/_head-include")
1+
if jade2ng
2+
if hero == 'home'
3+
!= partial("/_includes/_hero-home")
4+
else
5+
!= partial("/_includes/_hero")
6+
!= partial("../_includes/_banner")
7+
- var format = autoformat ? 'docs-content' : ''
8+
article(class="l-content #{format}")
9+
!= yield
10+
else
11+
doctype html public
12+
html(lang="en" ng-app="angularIOApp" itemscope itemtype="http://schema.org/Framework")
13+
head
14+
!= partial("/_includes/_head-include")
515

6-
body.ng-cloak.l-offset-nav(ng-controller="AppCtrl as appCtrl")
7-
!= partial("/_includes/_main-nav")
16+
body.ng-cloak.l-offset-nav(ng-controller="AppCtrl as appCtrl")
17+
!= partial("/_includes/_main-nav")
818

9-
<!-- HERO LOGO -->
10-
if hero == 'home'
11-
!= partial("/_includes/_hero-home")
12-
else
13-
!= partial("/_includes/_hero")
19+
<!-- HERO LOGO -->
20+
if hero == 'home'
21+
!= partial("/_includes/_hero-home")
22+
else
23+
!= partial("/_includes/_hero")
1424

15-
- var format = autoformat ? 'docs-content' : ''
25+
- var format = autoformat ? 'docs-content' : ''
1626

1727

18-
article(class="l-content #{format}")
19-
!= yield
28+
article(class="l-content #{format}")
29+
!= yield
2030

21-
!= partial("/_includes/_footer")
22-
!= partial("/_includes/_scripts-include")
23-
!= partial("/_includes/_scripts-minimum")
31+
!= partial("/_includes/_footer")
32+
!= partial("/_includes/_scripts-include")
33+
!= partial("/_includes/_scripts-minimum")

0 commit comments

Comments
 (0)