]> git.wh0rd.org Git - nano-editor.git/commitdiff
prefix the title of each page with "nano — "
authorBenno Schulenberg <bensberg@telfort.nl>
Wed, 5 May 2021 10:44:52 +0000 (12:44 +0200)
committerBenno Schulenberg <bensberg@telfort.nl>
Wed, 5 May 2021 10:44:52 +0000 (12:44 +0200)
index.php
top.php

index 5b64d34ea598ccd4fdbf90c21f89cf4f287a4fdd..8a7bba919fc83fa37612a3d51b57b043fcb94501 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1,4 +1,4 @@
-<?php $title="Text Editor";  $mainpage="true";  include "top.php"; ?>
+<?php $title="Text editor";  $mainpage="true";  include "top.php"; ?>
 
 <table BORDER=0 CELLSPACING=40 WIDTH="100%">
 <tr>
diff --git a/top.php b/top.php
index bdea83853a7f6755486f86a34fb918c78d2cd860..1ef93bef969bc8dc5d5097b808b1541cbbff6b3b 100644 (file)
--- a/top.php
+++ b/top.php
@@ -3,10 +3,10 @@
 
 <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
-   <title><?= $title ?></title>
-   <?php if (isset($mainpage)): ?>
+   <title>nano &mdash; <?= $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; ?>
+<?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)"/>