diff options
-rwxr-xr-x | ssg | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |