aboutsummaryrefslogtreecommitdiff
path: root/ssg
diff options
context:
space:
mode:
Diffstat (limited to 'ssg')
-rwxr-xr-xssg5
1 files changed, 4 insertions, 1 deletions
diff --git a/ssg b/ssg
index 4aafc85..5b522fc 100755
--- a/ssg
+++ b/ssg
@@ -53,6 +53,7 @@ sub generate_page {
<head>
<title>Deprecated</title>
<link rel="icon" href="/favicon.png" type="image/png"/>
+<meta name="viewport" content="width=device-width, initial-scale=0.9" />
<meta charset="UTF-8">
<style>
$styles
@@ -125,7 +126,9 @@ sub transverse {
next if $filename =~ /(\.|\.\.)$/;
next if $filename eq $directory;
- if($file_needed eq $file or $file_needed->dir eq $filename) {
+ if($file_needed eq $file or (
+ $file_needed->dir eq $filename and
+ $filename eq "index.md")) {
$retval = "$retval" . generate_link($file, { hl => 1 });
} else {
$retval = "$retval" . generate_link($file);