aboutsummaryrefslogtreecommitdiff
path: root/ssg
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@openmailbox.org>2016-02-24 02:27:32 -0300
committerMatias Linares <matiaslina@openmailbox.org>2016-02-24 02:27:32 -0300
commit9b21febff64925a894763cd12f09f1cb49dd3f56 (patch)
treea18ec42d4ef3799e87367c5241747c70d9cbeebc /ssg
parent4d716024dc58dc4c93c85c4c15ff3041b0dd3cd0 (diff)
downloadssg-9b21febff64925a894763cd12f09f1cb49dd3f56.tar.gz
remove all the index entries from the menu.
also add mobile support
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);