From 10e38b3b0fdad7e2881f0571f9b2717df2151f7a Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 21 Jul 2016 01:55:48 +0000 Subject: www: redefinable project name and URL This should make it easier for folks to run their own forks. --- lib/PublicInbox/WwwStream.pm | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'lib/PublicInbox/WwwStream.pm') diff --git a/lib/PublicInbox/WwwStream.pm b/lib/PublicInbox/WwwStream.pm index de457b48..ec9ae0cf 100644 --- a/lib/PublicInbox/WwwStream.pm +++ b/lib/PublicInbox/WwwStream.pm @@ -7,8 +7,9 @@ use strict; use warnings; use PublicInbox::Hval qw(ascii_html); use URI; -use constant PI_URL => 'https://public-inbox.org/'; our $TOR_URL = 'https://www.torproject.org/'; +our $CODE_URL = 'https://public-inbox.org/'; +our $PROJECT = 'public-inbox'; sub close {} @@ -87,12 +88,12 @@ sub _html_end { $urls .= "\n note: .onion URLs require Tor: "; $urls .= qq[$TOR_URL]; } - my $url = PublicInbox::Hval::prurl($ctx->{env}, PI_URL); + my $url = PublicInbox::Hval::prurl($ctx->{env}, $CODE_URL); '
'.join("\n\n",
 		$desc,
 		$urls,
-		'Served with public-inbox: '.
-		qq(git clone $url public-inbox)
+		'Code for this site: '.
+		qq(git clone $url $PROJECT)
 	).'
'; } -- cgit v1.2.3-24-ge0c7