about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-09-13 23:25:05 +0000
committerEric Wong <e@80x24.org>2015-09-13 23:25:05 +0000
commit3cab495544d85ce77804ffa78c705f242bf9125d (patch)
tree71b05508e19e453cb102f02939ccfdc439e95f66 /lib
parent0bd1fb36dded212c6f388599347501e2ca6b201b (diff)
downloadpublic-inbox-3cab495544d85ce77804ffa78c705f242bf9125d.tar.gz
It might be helpful if user agents do not display the <link>
element in <head>.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/View.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index 7e1fb045..6cb340b0 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -544,6 +544,10 @@ sub html_footer {
         my $srch = $ctx->{srch} if $ctx;
         my $upfx = $full_pfx ? '../' : '../../';
         my $idx = $standalone ? " <a\nhref=\"$upfx\">index</a>" : '';
+
+        if ($srch && $standalone) {
+                $idx .= qq{ / follow: <a\nhref="t.atom">Atom feed</a>};
+        }
         if ($idx && $srch) {
                 my ($next, $p) = thread_inline(\$idx, $ctx, $mime, $full_pfx);
                 if (defined $p) {