From 08c034059523d345de80f5ebd28843700a8bc4c8 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sun, 7 Jun 2020 07:26:53 +0200 Subject: [PATCH] page: record author metadata on creation Alter initial template html to include a link to the current admin, retained by ckeditor and available in meta for optional crediting of different sources. Named according to https://ogp.me/#no_vertical specification, except target does not contain the required Open Graph profile tags yet. --- page.php | 1 + 1 file changed, 1 insertion(+) diff --git a/page.php b/page.php index 5aac31f..14b58db 100644 --- 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:author'] = '/' . $User->dir; } if (isset($Article->raw)) { -- 2.30.0