Changed some code structure, added some elements + styling to blog views

This commit is contained in:
2016-09-03 17:47:02 +01:00
parent b7cca7b303
commit 91c316a3da
7 changed files with 42 additions and 21 deletions

View File

@ -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>&copy; Tim Stallard 2015</h3>
<h3>&copy; 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>