Changed some code structure, added some elements + styling to blog views
This commit is contained in:
@ -18,18 +18,18 @@
|
||||
<% 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>
|
||||
<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 %>">
|
||||
<div id="content" class="animations<% if(document.addclass){ %> <%= document.addclass %><% } %>" data-slug="<%- document.slug %>">
|
||||
<meta data-menu="<%= document.url.split("/")[1] %>" data-slug="<%- document.slug %>" />
|
||||
<%- content.replace("-split-", "") %>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer">
|
||||
<h3>© Tim Stallard 2015</h3>
|
||||
<h3>© Tim Stallard <%- new Date().getFullYear() %></h3>
|
||||
Hand crafted in the UK with DocPad, SmoothState.js, and lots of other magic<% /* - see the code <a href="https://github.com/TimStallard/timstallard.me.uk">on GitHub</a> */ %>
|
||||
<br>
|
||||
Mugshot by the awesome <a href="http://lws.io/">Kevin Lewis</a> at <a href="http://rebelmakers.co.uk/">Rebel Makers</a>
|
||||
|
Reference in New Issue
Block a user