X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/41811556ca2ca3ca29191bee012c35e5f40a3995..8da4e3db153de18c026cc8dda79bdc0947663c8a:/article.inc.php diff --git a/article.inc.php b/article.inc.php index 336511e..6c3ca93 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 = []; 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('{