Skip to content

Commit

Permalink
<link> to the first page of ATOM feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
divergentdave committed Apr 8, 2017
1 parent dee38f3 commit baa6852
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/layout/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
<link rel="canonical" href="https://oversight.garden/blog<%= page.url %>" />
<% } %>

<% if (req && req.originalUrl.startsWith("/reports")) { -%>
<link rel="alternate" type="application/atom+xml" title="Search Results" href="<%= req.originalUrl.replace("/reports", "/reports.xml") %>" />
<% if (typeof(query_obj) != "undefined") { -%>
<link rel="alternate" type="application/atom+xml" title="Search Results" href="/reports.xml?<%= helpers.format_qs(query_obj, {page: 1}) %>" />
<% } -%>

<meta name="twitter:card" content="summary" />
Expand Down

0 comments on commit baa6852

Please sign in to comment.