diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 4b6aae2c..00000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "bl-themes/clean-blog"] - path = bl-themes/clean-blog - url = git@github.com:bludit-themes/clean-blog.git diff --git a/bl-kernel/boot/variables.php b/bl-kernel/boot/variables.php index 3876ca03..a5412366 100644 --- a/bl-kernel/boot/variables.php +++ b/bl-kernel/boot/variables.php @@ -57,7 +57,7 @@ define('REMEMBER_COOKIE_TOKEN', 'BLUDITREMEMBERTOKEN'); define('REMEMBER_COOKIE_EXPIRE_IN_DAYS', 30); // Filename -define('FILENAME', 'index.txt'); +define('FILENAME', 'index.md'); // Database date format define('DB_DATE_FORMAT', 'Y-m-d H:i:s'); diff --git a/bl-kernel/page.class.php b/bl-kernel/page.class.php index a3613e11..1880eabb 100644 --- a/bl-kernel/page.class.php +++ b/bl-kernel/page.class.php @@ -440,7 +440,17 @@ class Page { return $tmp; } + public function subpages() + { + return $this->children(); + } + // Returns TRUE if the page has subpages/children, FALSE otherwise + public function hasSubpages() + { + $subpages = $this->subpages(); + return !empty($subpages); + } // Returns relative time (e.g. "1 minute ago") diff --git a/bl-themes/clean-blog b/bl-themes/clean-blog deleted file mode 160000 index 1620e2f4..00000000 --- a/bl-themes/clean-blog +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 1620e2f4640cf1dfcd04e2018e6e17b81d7b7e62