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