Added blog stuff and hidden pages for projects

This commit is contained in:
2016-04-13 08:08:08 +01:00
parent 07c0bbf4ce
commit d2f3cade8a
11 changed files with 91 additions and 14 deletions

View File

@ -22,13 +22,15 @@
<div id="nav">
<% var pages = getCollection("pages").toJSON() %>
<% pages.forEach(function(page){ %>
<% if(!page.hidden){ %>
<a class="fa fa-<%= page.icon %> <% if(page.url.split("/")[1] == document.url.split("/")[1]){ %>active<% } %>" href="<%= page.url %>" data-rooturl="<%= page.url.split("/")[1] %>"></a>
<% } %>
<% }) %>
</div>
</div>
<div id="content" class="animations" data-slug="<%- document.slug %>">
<meta data-menu="<%= document.url.split("/")[1] %>" data-slug="<%- document.slug %>" />
<%- content %>
<%- content.replace("-split-", "") %>
</div>
</div>
<div id="footer">