forked from 20xd6/simple_blog
Add comments to index.php
This commit is contained in:
parent
4117b552f2
commit
58f94c415d
@ -1,6 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
//The common file used to render pages on the blog.
|
||||||
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/header.php');
|
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/header.php');
|
||||||
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/menu.php');
|
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/menu.php');
|
||||||
|
//Looks for an article.md to see if the current directory is an article or not
|
||||||
|
//If it is not then it is a menu page.
|
||||||
if (file_exists('article.md')){
|
if (file_exists('article.md')){
|
||||||
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/md_read.php');
|
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/md_read.php');
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user