|
|
|
@ -118,8 +118,6 @@ class Book
|
|
|
|
|
$doc = $parser->parse(file_get_contents($file), false);
|
|
|
|
|
|
|
|
|
|
$meta = $doc->getYAML();
|
|
|
|
|
//$date = getdate($meta["created"]);
|
|
|
|
|
$newDate = date("Y M D d", $meta["created"]);
|
|
|
|
|
$page = [
|
|
|
|
|
"id" => $meta["id"],
|
|
|
|
|
"uuid" => $meta["uuid"],
|
|
|
|
@ -129,8 +127,8 @@ class Book
|
|
|
|
|
"layout" => $meta["layout"],
|
|
|
|
|
"tags" => $meta["tags"],
|
|
|
|
|
"author" => $meta["author"],
|
|
|
|
|
"prettyDate" => $newDate,
|
|
|
|
|
"created" => $meta["created"],
|
|
|
|
|
"created" => date("Y M D d", $meta["created"]),
|
|
|
|
|
"updated" => date("Y M D d", $meta["updated"]),
|
|
|
|
|
"deleted" => $meta["deleted"],
|
|
|
|
|
"menu" => $meta["menu"],
|
|
|
|
|
"featured" => $meta["featured"],
|
|
|
|
|