X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/b4b191a5b6f881b6d6e8b9ff43f9798e7fa851b1..8da4e3db153de18c026cc8dda79bdc0947663c8a:/article.inc.php?ds=inline diff --git a/article.inc.php b/article.inc.php index a6a4ef8..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('{