git: 74653ba6c3 - main - man.cgi: show the heading only on the homepage

From: Wolfram Schneider <wosch_at_FreeBSD.org>
Date: Sun, 06 Sep 2026 14:11:20 UTC
The branch main has been updated by wosch:

URL: https://cgit.FreeBSD.org/doc/commit/?id=74653ba6c36a12655cf8577beb39d74a184ad39b

commit 74653ba6c36a12655cf8577beb39d74a184ad39b
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2026-09-06 14:10:44 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2026-09-06 14:10:44 +0000

    man.cgi: show the heading only on the homepage
    
    It wastes space on the results pages.
    
    Event:                  Berlin Hackathon 202609
---
 website/content/en/cgi/man.cgi | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/website/content/en/cgi/man.cgi b/website/content/en/cgi/man.cgi
index 9917450809..e0bb8fddcb 100755
--- a/website/content/en/cgi/man.cgi
+++ b/website/content/en/cgi/man.cgi
@@ -1712,7 +1712,7 @@ sub apropos {
 
     &http_header("text/html");
     print &html_header("Apropos $title");
-    print "<br/>\n<h1>$www{'head'}</h1>\n\n";
+    print "<br/>\n";
 
     $section = $sektion;
     &formquery;
@@ -1832,7 +1832,8 @@ sub man {
     if ( $format eq "html" ) {
         &http_header("text/html");
         print &html_header("$title");
-        print "<br/>\n<h1>$www{'head'}</h1>\n\n";
+        print "<br/>\n";
+        print "<h1>$www{'head'}</h1>\n\n" if !$www{'head'};
         &formquery;
         print "<pre>\n";
     }