From c2b82132e3ee9e658299f15d0c07e4af70dae498 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sun, 17 May 2020 01:50:32 +0200 Subject: [PATCH] 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. --- head.inc.php | 1 + nieuws/index.php | 1 + 2 files changed, 2 insertions(+) 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; -- 2.30.0