git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86c2b19
)
page: editable meta tags without xml closure
author
Mischa POSLAWSKY
<perl@shiar.org>
Wed, 2 Dec 2020 22:38:17 +0000
(23:38 +0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 5 Dec 2020 00:41:21 +0000
(
01:41
+0100)
Match ckeditor output, just in case save doesn't reformat.
article.inc.php
patch
|
blob
|
history
page.php
patch
|
blob
|
history
diff --git
a/article.inc.php
b/article.inc.php
index 6c3ca935be15bf0318a377564ba8d136b4f8239b..93bbe3b79f46dfb11b6c631d053030a164590c5a 100644
(file)
--- a/
article.inc.php
+++ b/
article.inc.php
@@
-17,7
+17,7
@@
function showdate($parts)
class ArchiveArticle
{
public $raw, $title, $body; # file contents
- public $meta = [];
+ public $meta = [];
# head metadata properties
function __construct($path)
{
diff --git
a/page.php
b/page.php
index 75540b64d06c9ebcd84f1a744f8083989a2028d0..c5ade115caf5b67a12564423f5a825810d7d5af4 100644
(file)
--- a/
page.php
+++ b/
page.php
@@
-175,7
+175,7
@@
if (isset($Article->raw)) {
# restore meta tags in static contents for editing
foreach (array_reverse($Article->meta) as $metaprop => $val) {
$Article->raw = sprintf(
- '<meta property="%s" content="%s"
/
>'."\n",
+ '<meta property="%s" content="%s">'."\n",
$metaprop, $val
) . $Article->raw;
}