Browse Source

Customize a bit for my stule

master
Nathan Bergey 5 years ago
parent
commit
f97d920238
  1. 7
      layout/_partial/header.ejs
  2. 16
      layout/_partial/index.ejs
  3. 4
      layout/_partial/root.ejs
  4. 6
      layout/index.ejs
  5. 3
      source/css/tufte.css

7
layout/_partial/header.ejs

@ -1,8 +1,3 @@
<header> <header>
<% if(config.home) { %><a href="<%= config.home %>">Home</a> &middot;<% } %>
<a href="<%= config.root %>">Blog</a>
<% if(config.feed) { %>
&middot;
<a href="<%= url_for(config.feed.path) %>"><%= (config.feed.type == "atom") ? "Atom" : "RSS" %> Feed</a>
<% } %>
<span class="title"><a href="/">natronics.org</a></span>
</header> </header>

16
layout/_partial/index.ejs

@ -0,0 +1,16 @@
<p>
<em>Oculata Certitudine</em>
</p>
<h3>Git server:</h3>
<p>
<a href="https://git.natronics.org/natronics">https://git.natronics.org/natronics</a>
</p>
<h3>Some other things:</h3>
<ul>
<% page.posts.forEach(function (post) { %>
<li><a href="<%= url_for(post.path) %>"><%= post.date.format("MMMM YYYY") %>: <%= post.title %></li>
<% }) %>
</ul>

4
layout/_partial/root.ejs

@ -20,9 +20,7 @@
<%- partial('_partial/header') %> <%- partial('_partial/header') %>
<%- body %> <%- body %>
<footer> <footer>
<% if(page.prev_link) { %><a href="<%= config.root + page.prev_link %>">&lt; Previous</a>
<% } else if(!page.title && page.prev !== 0) { %><a href="<%= config.root %>">&lt; Previous</a><% } %>
<% if(page.next_link) { %><a href="<%= config.root + page.next_link %>">Next &gt;</a><% } %>
made in the boiling hot cement cubes of Philadelphia PA.
</footer> </footer>
</body> </body>
</html> </html>

6
layout/index.ejs

@ -1,6 +1,4 @@
<%- partial('_partial/root', { <%- partial('_partial/root', {
title: config.title,
body: page.posts.map(function(post) {
return partial('_partial/post', {post: post, link_title: true});
}).join("")
title: 'natronics.org',
body: partial('_partial/index')
}) %> }) %>

3
source/css/tufte.css

@ -272,3 +272,6 @@ label.margin-toggle:not(.sidenote-number) { display: none; }
div.table-wrapper, table, table.booktabs { width: 85%; } div.table-wrapper, table, table.booktabs { width: 85%; }
div.table-wrapper { border-right: 1px solid #efefef; } div.table-wrapper { border-right: 1px solid #efefef; }
img { width: 100%; } } img { width: 100%; } }
footer { padding-top: 80px; }
Loading…
Cancel
Save