diff options
author | Eric Wong <e@80x24.org> | 2016-04-25 01:00:24 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-04-25 01:00:24 +0000 |
commit | c4183f56aab666b38b1c11a182231fb1f11e6a6e (patch) | |
tree | 3c173e883b4ab02a6e2969948573f54cdb85ed86 /lib | |
parent | e43b93b82d515f06afa4c0ba787f45c28ab1450e (diff) | |
download | public-inbox-c4183f56aab666b38b1c11a182231fb1f11e6a6e.tar.gz |
This can makes navigation easier with some browsers or or browser extensions. ref: https://www.w3.org/TR/html/links.html#sequential-link-types
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/Feed.pm | 2 | ||||
-rw-r--r-- | lib/PublicInbox/View.pm | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/Feed.pm b/lib/PublicInbox/Feed.pm index 096bff9d..d433726f 100644 --- a/lib/PublicInbox/Feed.pm +++ b/lib/PublicInbox/Feed.pm @@ -185,7 +185,7 @@ sub nav_footer { my $anchor = $state->{anchor_idx}; if ($last) { - $next = qq!<a\nhref="?$param=$last">next</a>!; + $next = qq!<a\nhref="?$param=$last"\nrel=next>next</a>!; } if ($old_r) { $head = $cgi->path_info; diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm index 177a1a6f..63810dcb 100644 --- a/lib/PublicInbox/View.pm +++ b/lib/PublicInbox/View.pm @@ -513,12 +513,12 @@ sub html_footer { if ($p) { $p = PublicInbox::Hval->new_msgid($p); $p = $p->as_href; - $irt = "<a\nhref=\"$upfx$p/\">parent</a> "; + $irt = "<a\nhref=\"$upfx$p/\"rel=prev>parent</a> "; } else { $irt = ' ' x length('parent '); } if ($next) { - $irt .= "<a\nhref=\"$upfx$next/\">next</a> "; + $irt .= "<a\nhref=\"$upfx$next/\"\nrel=next>next</a> "; } else { $irt .= ' ' x length('next '); } |