From e3cd46c043e35ce3fa65e180df34d42113b93dcb Mon Sep 17 00:00:00 2001 From: Luke Carlson Date: Wed, 11 Jun 2014 11:58:56 -0400 Subject: [PATCH] edited generate_live to allow for landing pages per folder --- libs/live.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libs/live.php b/libs/live.php index 3ba2e66..72c76f2 100644 --- a/libs/live.php +++ b/libs/live.php @@ -8,8 +8,11 @@ $output_language = $b[0]; } $file = clean_url_to_file($page); - if (!is_file($file)) $file = FALSE; - return generate_page($file); + if (!is_file($file)) { + $index = clean_url_to_file($page . "index.md"); + $file = FALSE; + } + return generate_page($file, $index); } // Clean Live Url