]> git.wh0rd.org - nano-editor.git/blobdiff - top.php
add a <meta> description tag in the <head> section of the main page
[nano-editor.git] / top.php
diff --git a/top.php b/top.php
index 4cd63658cc6a605067a4dff64475e327d178a431..bdea83853a7f6755486f86a34fb918c78d2cd860 100644 (file)
--- a/top.php
+++ b/top.php
@@ -3,33 +3,37 @@
 
 <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 
 <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+   <title><?= $title ?></title>
+   <?php if (isset($mainpage)): ?>
+   <meta name="description" content="GNU nano is a small editor for on the terminal. It supports syntax highlighting, spell checking, justifying, completion, undo/redo...">
+   <?php endif; ?>
    <link rel="icon" href="/favicon.ico">
    <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)"/>
 </head>
 
 </head>
 
-<body text="#440077" bgcolor="#FFFFFF" link="#440077" vlink="#51188E" alink="#FF0000">
+<body>
 
 <table BORDER=0 CELLSPACING=0 WIDTH="100%" HEIGHT="8%">
 <tr><td>
 
 
 <table BORDER=0 CELLSPACING=0 WIDTH="100%" HEIGHT="8%">
 <tr><td>
 
-<table BORDER=0 CELLSPACING=0 WIDTH="100%" BGCOLOR="#440077">
+<table BORDER=0 CELLSPACING=0 WIDTH="100%" CLASS="inverted">
 <tr>
 
 <td>
 <tr>
 
 <td>
-<font color="#FFFFFF">&nbsp;Latest version:
+&nbsp;Latest version:
 <?php include "last-version"; ?>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 <?php include "last-version"; ?>
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-</font>
 </td>
 
 </td>
 
-<td align="center">>
-<a href="/"><font color="#FFFFFF">The GNU nano homepage</font></a>
+<td align="center">
+<a href="/">The GNU nano homepage</a>
 </td>
 
 <td align="right">
 </td>
 
 <td align="right">
-<font color="#FFFFFF">Modified:
+Modified:
 <?php include "last-modified"; ?>
 &nbsp;
 <?php include "last-modified"; ?>
 &nbsp;
-</font>
 </td>
 
 </tr>
 </td>
 
 </tr>