From: Mischa POSLAWSKY Date: Sat, 16 May 2020 23:50:32 +0000 (+0200) Subject: head: indicate explicit og:type of website X-Git-Tag: v4.4~5 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/c2b82132e3ee9e658299f15d0c07e4af70dae498 head: indicate explicit og:type of website Include just to allow page overrides, such as "article" for nieuws pages (might affect Facebook, but seems a minor and mostly useless distinction). At least silences Dareboost warnings about required Open Graph properties. --- diff --git a/head.inc.php b/head.inc.php index 797f611..2b29afc 100644 --- a/head.inc.php +++ b/head.inc.php @@ -13,6 +13,7 @@ image) { ?> + diff --git a/nieuws/index.php b/nieuws/index.php index c6234cf..392a10f 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -7,6 +7,7 @@ if ($User and $User->admin("edit $Page")) { } if ($page and !is_numeric($page)) { + $Article->meta['og:type'] = 'article'; $edit = $User && $User->admin("edit $Page$Args") ? htmlspecialchars(@$_GET['edit']) : NULL; if ($edit) { $Article->title = $edit;