Browse Source

Feed is now optional

master
J David Smith 9 years ago
parent
commit
06259455ed
  1. 7
      layout/_partial/header.ejs
  2. 2
      layout/_partial/root.ejs

7
layout/_partial/header.ejs

@ -1,5 +1,8 @@
<header> <header>
<% if(config.home) { %><a href="<%= config.home %>">Home</a> &middot;<% } %> <% 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>
<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>
<% } %>
</header> </header>

2
layout/_partial/root.ejs

@ -11,8 +11,10 @@
<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">
<% if(config.feed) { %>
<link rel="alternate" type="application/<%= config.feed.type %>+xml" <link rel="alternate" type="application/<%= config.feed.type %>+xml"
title="<%= config.title %>" href="<%= url_for(config.feed.path) %>" /> title="<%= config.title %>" href="<%= url_for(config.feed.path) %>" />
<% } %>
</head> </head>
<body> <body>
<%- partial('_partial/header') %> <%- partial('_partial/header') %>

Loading…
Cancel
Save