-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlayout.html
48 lines (44 loc) · 1.39 KB
/
layout.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<head>
<title>IR Demo</title>
</head>
<template name="layout">
<div class="container">
<header>
{{> nav }}
</header>
{{> yield}}
</div>
</template>
<template name='nav'>
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
{{> navBrand}}
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
{{> navItems}}
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</template>
<template name="navBrand">
<a class="navbar-brand" href="{{ pathFor 'home' }}">IR Demo</a>
</template>
<template name='navItems'>
<li class="{{ activeIfTemplateIs 'articles' }}">
<a href="{{ pathFor 'articles'}}">Articles</a>
</li>
<li class="{{ activeIfTemplateIs 'about' }}">
<a href="{{pathFor 'about'}}">About</a>
</li>
</template>