Browse Source

Replaced values specific to my blog with config values

master
J David Smith 9 years ago
parent
commit
c0189b3329
  1. 4
      layout/_partial/header.ejs
  2. 8
      layout/_partial/root.ejs
  3. 2
      layout/index.ejs

4
layout/_partial/header.ejs

@ -1,3 +1,5 @@
<header> <header>
<a href="https://atlanis.net/">Home</a> &middot; <a href="<%= config.root %>">Blog</a> &middot; <a href="<%= url_for(config.feed.path) %>">Atom Feed</a>
<% if(config.home) { %><a href="<%= config.home %>">Home</a> &middot;<% } %>
<a href="<%= config.root %>">Blog</a> &middot;
<a href="<%= url_for(config.feed.path) %>">Atom Feed</a>
</header> </header>

8
layout/_partial/root.ejs

@ -3,14 +3,16 @@
<head> <head>
<title><%= title %></title> <title><%= title %></title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta name="author" content="J David Smith">
<% if(config.author) { %>
<meta name="author" content="<%= config.author %>">
<% } %>
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="<%= config.root + 'css/tufte.css'%>"> <link rel="stylesheet" type="text/css" href="<%= config.root + 'css/tufte.css'%>">
<link rel="stylesheet" type="text/css" href="<%= config.root + 'css/tufte_ext.css'%>"> <link rel="stylesheet" type="text/css" href="<%= config.root + 'css/tufte_ext.css'%>">
<link rel="stylesheet" type="text/css" href="<%= config.root + 'css/solarized_light.css'%>"> <link rel="stylesheet" type="text/css" href="<%= config.root + 'css/solarized_light.css'%>">
<link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css"> <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
<link rel="alternate" type="application/atom+xml"
title="Record of Motion" href="<%= config.root + 'atom.xml' %>" />
<link rel="alternate" type="application/<%= config.feed.type %>+xml"
title="<%= config.title %>" href="<%= url_for(config.feed.path) %>" />
</head> </head>
<body> <body>
<%- partial('_partial/header') %> <%- partial('_partial/header') %>

2
layout/index.ejs

@ -1,5 +1,5 @@
<%- partial('_partial/root', { <%- partial('_partial/root', {
title: "Record of Motion",
title: config.title,
body: page.posts.map(function(post) { body: page.posts.map(function(post) {
return partial('_partial/post', {post: post, link_title: true}); return partial('_partial/post', {post: post, link_title: true});
}).join("") }).join("")

Loading…
Cancel
Save