put the <title> tag inside the <head> section of each page
[nano-editor.git] / top.php
diff --git a/top.php b/top.php
index 33b1f5ee9e35c5e18639f270eda756f8bff72b33..e65903563aa0e070cb6b995447db70b95f55fb6e 100644 (file)
--- a/top.php
+++ b/top.php
@@ -3,8 +3,10 @@
 
 <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.css"/>
+   <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>
 
 <body>