Skip to content

Commit

Permalink
Add meta description to modules and releases from the abstract
Browse files Browse the repository at this point in the history
  • Loading branch information
ranguard committed Jun 14, 2013
1 parent 902d792 commit a1980b2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions root/module.html
@@ -1,5 +1,6 @@
<% twitter_card_inc = 'inc/twitter/module.html' %>
<% canonical = "/module/" _ module.documentation %>
<% meta_description = module.abstract %>
<% 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,5 +1,6 @@
<% title = release.name _ ' - ' _ release.abstract; rss = 'distribution/' _ release.distribution %>
<% canonical = '/release/' _ release.distribution %>
<% meta_description = release.abstract %>
<% twitter_card_inc = 'inc/twitter/release.html' %>
<strong>
<big>
Expand Down
3 changes: 3 additions & 0 deletions root/wrapper.html
Expand Up @@ -29,6 +29,9 @@
<link rel="search" href="/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
<%- IF canonical %>
<link rel="canonical" href="https://metacpan.org<% canonical %>" />
<%- END %>
<%- IF meta_description %>
<meta name="description" content="<% meta_description %>" />
<%- END %>
<link rel="icon" type="image/png" href="/static/icons/favicon.png" />
<script src="<% req.env.item('psgix.assets').0 %>" type="text/javascript"></script>
Expand Down

0 comments on commit a1980b2

Please sign in to comment.