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 87c4ff19109238f347c7cbabad0cb5ee8a4a397d..bdea83853a7f6755486f86a34fb918c78d2cd860 100644 (file)
--- a/top.php
+++ b/top.php
@@ -3,6 +3,10 @@
 
 <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="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)"/>