Init with existing code

This commit is contained in:
2016-01-07 10:25:27 +00:00
parent e528f3f1c6
commit 92f4138dcc
23 changed files with 1899 additions and 0 deletions

33
src/layouts/core.html.ejs Normal file
View File

@ -0,0 +1,33 @@
<html>
<head>
<title><%= document.title %> // Tim Stallard</title>
<link rel="stylesheet" href="/libs/Animate.css" />
<link rel="stylesheet" href="/libs/fa.css" />
<link rel="stylesheet" href="/styles.css" />
<script src="/libs/jquery.min.js"></script>
<script src="/libs/jquery.smoothState.min.js"></script>
<script src="/script.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="main">
<div id="header">
<h1>Tim Stallard</h1>
<div id="nav">
<% var pages = getCollection("pages").toJSON() %>
<% pages.forEach(function(page){ %>
<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="m-scene">
<meta data-menu="<%= document.url.split("/")[1] %>" />
<%- content %>
</div>
</div>
<div id="footer">
<h3>&copy; Tim Stallard 2015</h3>
Hand crafted in the UK with DocPad, SmoothState.js and lots of other magic - see the code on GitHub
</div>
</body>
</html>