Skip to content

Commit 5ad5a7f

Browse files
committed
add a navigation header to the docs
1 parent 743839e commit 5ad5a7f

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

backend/src/FileController.php

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,22 @@ public function doc($file): void
8080
$html = \Parsedown::instance()->text(file_get_contents($mdfile));
8181

8282
header('Content-Type: text/html; charset=utf-8');
83-
echo '<html lang="en"><head><title>' . $file . '</title>';
83+
echo '<html lang="en"><head><title>' . $file . ' - Meh… another comment system</title>';
8484
echo '<link rel="stylesheet" href="https://unpkg.com/chota@latest">';
8585
echo '</head><body><div class="container">';
86+
87+
echo '<nav class="nav">';
88+
echo '<div class="nav-left">';
89+
echo '</div>';
90+
echo '<div class="nav-center">';
91+
echo '<a class="brand" href="/"><img src="/meh.svg" alt="Meh… another comment system"></a>';
92+
echo '</div>';
93+
echo '<div class="nav-right">';
94+
echo '<a href="https://www.splitbrain.org/blog/2025-03/26-meh_another_comment_system">Introduction &amp; Demo</a>';
95+
echo '<a href="https://github.com/splitbrain/meh">Github</a>';
96+
echo '</div>';
97+
echo '</nav>';
98+
8699
echo $html;
87100
echo '</div></body></html>';
88101
}

0 commit comments

Comments
 (0)