]> git.wh0rd.org Git - nano-editor.git/commitdiff
put the <title> tag inside the <head> section of each page
authorBenno Schulenberg <bensberg@telfort.nl>
Wed, 5 May 2021 10:14:05 +0000 (12:14 +0200)
committerBenno Schulenberg <bensberg@telfort.nl>
Wed, 5 May 2021 10:15:48 +0000 (12:15 +0200)
Otherwise the pages are not well-formed HTML.

Thanks to Peter Liscovius for suggesting how to do this in PHP.

contact.php
docs.php
download.php
git.php
history.php
index.php
news.php
screenshots.php
top.php
who.php

index 1d41c4bfc7b2ff6113a45442dbb15e48db873ec0..138444977bf006b56e9bb630567d629b6594508c 100644 (file)
@@ -1,6 +1,4 @@
-<?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>
index 40553d3bba8a9cba4158272902336f3f25fc7561..5e2a212d4c7ef6616db84ab4766f11aeb3979bd4 100644 (file)
--- a/docs.php
+++ b/docs.php
@@ -1,6 +1,4 @@
-<?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>
index 0306cad706b4625d20277f21498569bd703f4eab..f6eaa83a55b6b6e6bce9cccb32e133a0f7147a17 100644 (file)
@@ -1,8 +1,5 @@
-<?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>
diff --git a/git.php b/git.php
index 524a937aff364f0e204d17f9302095bfb33bbde6..160f29b80bacfb45585d97a9973c9b66dcb13ead 100644 (file)
--- a/git.php
+++ b/git.php
@@ -1,6 +1,4 @@
-<?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>
index 5e8036a8c6df7513ddaa0e9c3c6be8b4afb72028..ad76071add4af5671fe4b98b8f0b1725194c6fb9 100644 (file)
@@ -1,6 +1,4 @@
-<?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>
index 66ed37614d39adf1a6cceed7ae3a7ede80f6c77f..bff9a4b70e3b81f8c78a527b944c35fa83e62cab 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,6 +1,4 @@
-<?php include "top.php"; ?>
-
-<title>GNU nano</title>
+<?php $title="Text Editor";  include "top.php"; ?>
 
 <table BORDER=0 CELLSPACING=40 WIDTH="100%">
 <tr>
index 4750ed3aa98341ce7229e319aaea6836cd6dd325..f6cdbe248c80959331c42e64b3a35cf14748bde0 100644 (file)
--- a/news.php
+++ b/news.php
@@ -1,6 +1,4 @@
-<?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>
index 684b8f38f751d22a2c1a93a1aa311d6bac55a4be..e019316dbc4127a9a2a6340cac4559bd4b1c17d7 100644 (file)
@@ -1,6 +1,4 @@
-<?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>
diff --git a/top.php b/top.php
index 87c4ff19109238f347c7cbabad0cb5ee8a4a397d..e65903563aa0e070cb6b995447db70b95f55fb6e 100644 (file)
--- a/top.php
+++ b/top.php
@@ -3,6 +3,7 @@
 
 <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)"/>
diff --git a/who.php b/who.php
index 79738bc406dec7b98ebb4e8cb12256506092ce0c..588e46cd4be90a7f6d57da5d313ad14cedbb7cba 100644 (file)
--- a/who.php
+++ b/who.php
@@ -1,6 +1,4 @@
-<?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>