Skip to content

Commit 4188bd7

Browse files
authored
Merge pull request metacpan#2236 from scop/rss-title
Sync RSS link titles with respective feeds
2 parents 4f7e35d + 541a016 commit 4188bd7

File tree

9 files changed

+10
-7
lines changed

9 files changed

+10
-7
lines changed

root/author.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<% title = author.name _ " (" _ author.pauseid _ ")"; rss = 'author/' _ author.pauseid %>
1+
<% title = author.name _ " (" _ author.pauseid _ ")"; rss = 'author/' _ author.pauseid; rss_title = 'Recent CPAN Activity of ' _ author.pauseid _ ' - MetaCPAN' %>
22
<% twitter_card_inc = 'inc/twitter/author.html' %>
33
<ul class="nav-list slidepanel">
44
<li class="hidden-phone"><% INCLUDE inc/author-pic.html author = author %></li>

root/favorite/recent.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<%
22
rss = 'recent';
3+
rss_title = 'Recent CPAN Uploads - MetaCPAN';
34
title = "Recent Favorites";
45
INCLUDE inc/recent-bar.html;
56
%>

root/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<%- rss = "recent" %>
1+
<%- rss = "recent"; rss_title = 'Recent CPAN Uploads - MetaCPAN' %>
22

33
<div align="center" class="home">
44
<a href="/" class="big-logo" alt="meta::cpan"></a>

root/news.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<%- title = "News" %>
2-
<%- rss = "news" %>
2+
<%- rss = "news"; rss_title = 'Recent MetaCPAN News' %>
33
<a class="news_feed" href="/feed/news"><i class="fa fa-rss fa-2x"></i></a>
44
<div class="content anchors">
55
<% USE MultiMarkdown(heading_ids => 1) -%>

root/pod.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
title =
66
(module.documentation or module.module.0.name ) _
77
(module.abstract ? ' - ' _ module.abstract : '');
8-
rss = 'distribution/' _ module.distribution
8+
rss = 'distribution/' _ module.distribution;
9+
rss_title = 'Recent CPAN Uploads of ' _ module.distribution _ ' - MetaCPAN';
910
%>
1011

1112
<div itemscope itemtype="http://schema.org/SoftwareApplication">

root/recent.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<%
22
rss = 'recent?f=' _ c.req.params.f || 'l';
3+
rss_title = 'Recent CPAN Uploads - MetaCPAN';
34
title = "Recent";
45
INCLUDE inc/recent-bar.html;
56
%>

root/release.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<% title = release.name _ ' - ' _ release.abstract; rss = 'distribution/' _ release.distribution %>
1+
<% title = release.name _ ' - ' _ release.abstract; rss = 'distribution/' _ release.distribution; rss_title = 'Recent CPAN Uploads of ' _ release.distribution _ ' - MetaCPAN' %>
22
<% canonical = '/release/' _ release.distribution %>
33
<% meta_description = release.abstract %>
44
<% twitter_card_inc = 'inc/twitter/release.html' %>

root/source.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<%- rss = 'distribution/' _ file.distribution %>
1+
<%- rss = 'distribution/' _ file.distribution; rss_title = 'Recent CPAN Uploads of ' _ file.distribution _ ' - MetaCPAN' %>
22
<%- title = file.path %>
33
<div class="breadcrumbs">
44
<a data-keyboard-shortcut="g s" href="/source/<% base = [file.author, file.release].join("/"); base %>"><% [file.author, file.release].join(" / ") %></a>

root/wrapper.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
5757
<title><% IF title; title; ELSE; 'Search the CPAN'; END %> - metacpan.org</title>
5858
<%- IF rss %>
59-
<link rel="alternate" type="application/rss+xml" title="RSS" href="/feed/<% rss %>" />
59+
<link rel="alternate" type="application/rss+xml" title="<% IF rss_title; rss_title; ELSE; 'RSS'; END %>" href="/feed/<% rss %>" />
6060
<%- END %>
6161
<%- FOREACH css IN req.env.item('psgix.assets').grep(/\.css$/) %>
6262
<link href="<% css %>" rel="stylesheet" type="text/css">

0 commit comments

Comments
 (0)