Simple canonical link provided via `canonical_url` within front matter (#436)

- #435
pull/440/head
Russ Hammett 2019-03-19 11:35:02 -04:00 committed by Ruipeng Zhang
parent 4d21835ca6
commit 0a35069a8b
1 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,10 @@
<%- open_graph(og_options) %>
<% } %>
<% if (has_config('canonical_url')) { %>
<link rel="canonical" href="<%- get_config('canonical_url') %>" />
<% } %>
<% if (has_config('rss')) { %>
<link rel="alternative" href="<%- get_config('rss') %>" title="<%= get_config('title') %>" type="application/atom+xml">
<% } %>