about summary refs log tree commit homepage
path: root/lib/PublicInbox/WwwStream.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/WwwStream.pm')
-rw-r--r--lib/PublicInbox/WwwStream.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/PublicInbox/WwwStream.pm b/lib/PublicInbox/WwwStream.pm
index e0823c8d..7399b0ad 100644
--- a/lib/PublicInbox/WwwStream.pm
+++ b/lib/PublicInbox/WwwStream.pm
@@ -127,10 +127,15 @@ sub _html_end {
                 $addrs
         public-inbox-index $dir
 EOF
+        } else { # v1
+                $urls .= "\n";
         }
+
+        my $cfg_link = ($ctx->{-upfx} // '').'_/text/config/raw';
+        $urls .= qq(\nExample <a\nhref="$cfg_link">config snippet</a> for mirrors\n);
         my @nntp = map { qq(<a\nhref="$_">$_</a>) } @{$ibx->nntp_url};
         if (@nntp) {
-                $urls .= "\n\n";
+                $urls .= "\n";
                 $urls .= @nntp == 1 ? 'Newsgroup' : 'Newsgroups are';
                 $urls .= ' available over NNTP:';
                 $urls .= "\n\t" . join("\n\t", @nntp) . "\n";