Otherwise the pages are not well-formed HTML.
Thanks to Peter Liscovius for suggesting how to do this in PHP.
-<?php include "top.php"; ?>
-
-<title>GNU nano: Reporting Bugs</title>
+<?php $title="Reporting bugs"; include "top.php"; ?>
<table BORDER=0 CELLSPACING=0 WIDTH="100%" HEIGHT="70%">
<tr VALIGN=TOP>
-<?php include "top.php"; ?>
-
-<title>GNU nano: Documentation</title>
+<?php $title="Documentation"; include "top.php"; ?>
<table BORDER=0 CELLSPACING=0 WIDTH="100%" HEIGHT="70%">
<tr VALIGN=TOP>
-<?php include "top.php"; ?>
+<?php $title="Downloads"; include "top.php"; ?>
-<title>GNU nano: Download</title>
-
-<body>
<table BORDER=0 CELLSPACING=0 WIDTH="100%" HEIGHT="70%">
<tr VALIGN=TOP>
<td>
-<?php include "top.php"; ?>
-
-<title>GNU nano: Source code</title>
+<?php $title="Source code"; include "top.php"; ?>
<table BORDER=0 CELLSPACING=0 WIDTH="100%" HEIGHT="70%">
<tr VALIGN=TOP>
-<?php include "top.php"; ?>
-
-<title>GNU nano: History</title>
+<?php $title="History"; include "top.php"; ?>
<table BORDER=0 CELLSPACING=0 WIDTH="100%" HEIGHT="70%">
<tr VALIGN=TOP>
-<?php include "top.php"; ?>
-
-<title>GNU nano</title>
+<?php $title="Text Editor"; include "top.php"; ?>
<table BORDER=0 CELLSPACING=40 WIDTH="100%">
<tr>
-<?php include "top.php"; ?>
-
-<title>GNU nano: News</title>
+<?php $title="News"; include "top.php"; ?>
<table BORDER=0 CELLSPACING=0 WIDTH="100%" HEIGHT="70%">
<tr VALIGN=TOP>
-<?php include "top.php"; ?>
-
-<title>GNU nano: Screenshots</title>
+<?php $title="Screenshots"; include "top.php"; ?>
<table BORDER=0 CELLSPACING=0 WIDTH="100%" HEIGHT="70%">
<tr VALIGN=TOP>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <title><?= $title ?></title>
<link rel="icon" href="/favicon.ico">
<link rel="stylesheet" href="style-dark.css" media="(prefers-color-scheme: dark)"/>
<link rel="stylesheet" href="style-light.css" media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)"/>
-<?php include "top.php"; ?>
-
-<title>GNU nano: Who's who</title>
+<?php $title="Who's who"; include "top.php"; ?>
<table BORDER=0 CELLSPACING=0 WIDTH="100%" HEIGHT="70%">
<tr VALIGN=TOP>