Skip to content

Commit

Permalink
Add canonical urls to help with SEO
Browse files Browse the repository at this point in the history
  • Loading branch information
ranguard committed Jun 14, 2013
1 parent 4d6f162 commit 902d792
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions root/module.html
@@ -1,4 +1,5 @@
<% twitter_card_inc = 'inc/twitter/module.html' %>
<% canonical = "/module/" _ module.documentation %>
<% title = module.documentation _ (module.abstract ? ' - ' _ module.abstract : ''); rss = 'distribution/' _ module.distribution %>
<strong>
<big>
Expand Down
1 change: 1 addition & 0 deletions root/release.html
@@ -1,4 +1,5 @@
<% title = release.name _ ' - ' _ release.abstract; rss = 'distribution/' _ release.distribution %>
<% canonical = '/release/' _ release.distribution %>
<% twitter_card_inc = 'inc/twitter/release.html' %>
<strong>
<big>
Expand Down
6 changes: 5 additions & 1 deletion root/wrapper.html
Expand Up @@ -23,9 +23,13 @@
<html>
<head>
<title><% IF title; title; ELSE; 'Search the CPAN'; END %> - metacpan.org</title>
<%- IF rss %><link rel="alternate" type="application/rss+xml" title="RSS" href="http://metacpan.org/feed/<% rss %>" /><% END %>
<%- IF rss %>
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://metacpan.org/feed/<% rss %>" /><% END %>
<link href="<% req.env.item('psgix.assets').1 %>" rel="stylesheet" type="text/css">
<link rel="search" href="/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
<%- IF canonical %>
<link rel="canonical" href="https://metacpan.org<% canonical %>" />
<%- END %>
<link rel="icon" type="image/png" href="/static/icons/favicon.png" />
<script src="<% req.env.item('psgix.assets').0 %>" type="text/javascript"></script>
<script type="text/javascript">
Expand Down

0 comments on commit 902d792

Please sign in to comment.