page: record creation time in template meta tag
[minimedit.git] / page.php
index 14b58db8060484ba3fa2f3e022b554da7d32a153..d4404fd0e22a1398783c74c332fa47435f641e3f 100644 (file)
--- a/page.php
+++ b/page.php
@@ -173,6 +173,7 @@ $Place = [
 if (!isset($Article->raw) and $User->admin("edit {$Article->link}")) {
        # open template as initial contents
        $Article->raw(file_exists("$Page/template.inc.html") ? "$Page/template.inc.html" : 'template.inc.html');
+       $Article->meta['article:published_time'] = date('Y-m-d h:i:s O');
        $Article->meta['article:author'] = '/' . $User->dir;
 }