Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Aug 2017 17:38:37 +0000 (UTC)
From:      Wolfram Schneider <wosch@FreeBSD.org>
To:        doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org
Subject:   svn commit: r50730 - head/en_US.ISO8859-1/htdocs/cgi
Message-ID:  <201708271738.v7RHcbP6067456@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wosch
Date: Sun Aug 27 17:38:37 2017
New Revision: 50730
URL: https://svnweb.freebsd.org/changeset/doc/50730

Log:
  disable index section and intro links on homepage

Modified:
  head/en_US.ISO8859-1/htdocs/cgi/man.cgi

Modified: head/en_US.ISO8859-1/htdocs/cgi/man.cgi
==============================================================================
--- head/en_US.ISO8859-1/htdocs/cgi/man.cgi	Sun Aug 27 03:10:37 2017	(r50729)
+++ head/en_US.ISO8859-1/htdocs/cgi/man.cgi	Sun Aug 27 17:38:37 2017	(r50730)
@@ -929,6 +929,10 @@ $want_to_link_to_this_page = 1;
 $enable_include_links = 0;
 $enable_mailto_links  = 0;
 
+my $enable_section_indexes = 0;
+my $enable_intro = 0;
+
+
 #
 # end of config
 #######################################################################################
@@ -1657,19 +1661,23 @@ sub indexpage {
     local ($m) = ( $manpath ? $manpath : $manPathDefault );
     $m = &encode_url($m);
 
+    if ($enable_section_indexes) {
     print "<b><i>Section Indexes</i></b>:\n";
     foreach ( '1', '2', '3', '4', '5', '6', '7', '8', '9', 'n' ) {
         print qq{&#164; } if $_ ne '1';
         print
 qq{<a href="$BASE?query=($_)&amp;sektion=&amp;apropos=1&amp;manpath=$m&amp;title=Section%20$_Index">$_</a>\n};
     }
+    }
 
+    if ($enable_intro) {
     print "<br /><b><i>Explanations of Man Sections:</i></b>\n";
     foreach ( '1', '2', '3', '4', '5', '6', '7', '8', '9' ) {
         print qq{&#164; } if $_ ne '1';
         print
 qq{<a href="$BASE?query=intro&amp;sektion=$_&amp;apropos=0&amp;manpath=$m&amp;title=Introduction%20Section%20$_">intro($_)</a>\n};
     }
+    }
 
     if (0) {
         print "<br />\n<b><i>Quick Reference Categories:</i></b>\n";
@@ -1689,7 +1697,9 @@ qq{&#164; <a href="$BASE?query=$_&amp;sektion=&amp;apr
 URL:  <a href="$BASE" target="_parent">$www{'home'}$BASE</a><br />
 ETX
 
-    print "<br />\n";
+    if ($enable_section_indexes || $enable_intro) {
+        print "<br />\n";
+    }
     &html_footer( 'no_home_link' => 1 );
 }
 
@@ -1773,9 +1783,10 @@ ETX
 Output format
 </form>
 
+<br/>
 <a href="$BASE?manpath=$m">home</a> |
 <a href="$BASE/help.html">help</a> 
-<hr />
+<hr/>
 ETX
     0;
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708271738.v7RHcbP6067456>