diff --git a/draft.php b/draft.php new file mode 100644 index 0000000..6b49a74 --- /dev/null +++ b/draft.php @@ -0,0 +1,32 @@ +parse(file_get_contents($filename)); + $yml = $document->getYAML(); + $content = $document->getContent(); + $title = ($yml['title'] ?? 'invalid'); + $author_san = htmlspecialchars($yml['author']); + $description = "Draft {$_GET['name']}: {$yml['title']} by {$author_san}"; + include 'header.php'; +?> +

Draft :

+

Author:
+ +Updates: {$num}"; if(next($arr)) { echo ", "; }}?>
+ + +Updated by: {$num}"; if(next($arr)) { echo ", "; }}?>
+ + +