@@ -265,7 +267,23 @@ if ($homepage && $homepage_url !== '/') {
diff --git a/less/import/daux-base.less b/less/import/daux-base.less
index ca4a8ff..58e9555 100644
--- a/less/import/daux-base.less
+++ b/less/import/daux-base.less
@@ -474,10 +474,13 @@ code {
.page-header {
margin: 10px 0px;
- padding: 0px 0 20px;
+ padding: 0px;
h1 {
margin-top: 0px;
}
+ sub-heading {
+ padding: 0px, 0px, 20px;
+ }
}
pre {
border: none;
diff --git a/libs/functions.php b/libs/functions.php
index c26e804..fca70bd 100644
--- a/libs/functions.php
+++ b/libs/functions.php
@@ -1,6 +1,7 @@
false,
'image' => false,
'theme' => 'blue',
+ 'date_modified' => true,
'float' => true,
'repo' => false,
'twitter' => array(),
@@ -102,28 +104,29 @@ function docs_url($tree, $branch = false) {
function load_page($tree) {
$branch = find_branch($tree);
+ $page = array();
+
if (isset($branch['type']) && $branch['type'] == 'file') {
$html = '';
if ($branch['name'] !== 'index') {
- $html .= '';
+ $page['title'] = $branch['title'];
+ $page['modified'] = filemtime($branch['path']);
}
$html .= MarkdownExtended(file_get_contents($branch['path']));
- return $html;
+
+ $page['html'] = $html;
+
} else {
- return "Oh No. That page dosn't exist";
+
+ $page['title'] = "Oh no";
+ $page['html'] = "
Oh No. That page dosn't exist
";
+
}
+
+
+ return $page;
}
function find_branch($tree) {