X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/f0a0679f7ec71d6ae4969d39da4d6be84147fcb4..bd940f48a9b1c6fb45aef4860d3f23b8094d5ba4:/article.inc.php diff --git a/article.inc.php b/article.inc.php index e3a3ee8..93bbe3b 100644 --- a/article.inc.php +++ b/article.inc.php @@ -16,16 +16,35 @@ function showdate($parts) class ArchiveArticle { - public $raw, $preface, $title, $body; + public $raw, $title, $body; # file contents + public $meta = []; # head metadata properties function __construct($path) { - $this->page = $path; - $this->link = preg_replace('{(?:/index)?\.html$}', '', $path); - if (file_exists($this->page)) { - $this->raw = file_get_contents($this->page); - @list ($this->preface, $this->title, $this->body) = - preg_split('{