diff options
author | Matias Linares <matiaslina@openmailbox.org> | 2016-02-24 02:27:32 -0300 |
---|---|---|
committer | Matias Linares <matiaslina@openmailbox.org> | 2016-02-24 02:27:32 -0300 |
commit | 9b21febff64925a894763cd12f09f1cb49dd3f56 (patch) | |
tree | a18ec42d4ef3799e87367c5241747c70d9cbeebc /ssg | |
parent | 4d716024dc58dc4c93c85c4c15ff3041b0dd3cd0 (diff) | |
download | ssg-9b21febff64925a894763cd12f09f1cb49dd3f56.tar.gz |
remove all the index entries from the menu.
also add mobile support
Diffstat (limited to 'ssg')
-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); |