/
header._
29 lines (27 loc) · 957 Bytes
/
header._
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
<a href='{{site.baseurl}}' class='title'>Poole</a>
<div class="navigation">
<!--Github account and links-->
<div class="root"><a href="#">Repos</a></div>
<% if (state.repo) { %>
<div class="repo">
<% if (state.repo) { %>
> <a href="#<%= [state.user, state.repo, state.branch].join('/') %>"><%= state.repo %></a></div>
<% } %>
<div class="path">
<% var path = state.path.replace('_posts/','').replace('_posts',''); %>
<% if (path) { %>
> <a href="#<%= [state.user, state.repo, state.branch, state.path].join('/') %>"><%= path %></a>
<% } %>
</div>
<div class="file">
<% if (state.file) { %>
> <%= state.file %>
<% } %>
</div>
<% } %>
</div>
<% if (app.username) { %>
<div class='user-status'>
<%= app.username %>
</div>
<% } %>