From 33e26880406ed18fef413302710695a36d20a4fa Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Fri, 28 Jun 2019 00:27:00 +0200 Subject: [PATCH] head: use page teaser as meta description --- head.inc.php | 4 ++-- nieuws/index.php | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/head.inc.php b/head.inc.php index 68ec4ca..72cbf36 100644 --- a/head.inc.php +++ b/head.inc.php @@ -5,8 +5,8 @@ title) { ?> <?= htmlspecialchars($Article->safetitle) ?> - - +teaser) { ?> + diff --git a/nieuws/index.php b/nieuws/index.php index 0f81de2..8b82b61 100644 --- a/nieuws/index.php +++ b/nieuws/index.php @@ -11,9 +11,6 @@ if ($page and !is_numeric($page)) { if ($edit) { $Article->title = $edit; } - if (isset($Article->raw)) { - $Place['description'] = $Article->teaser; - } $Place[1] = ' '.$Article->date.''; print preg_replace('{(?<=

)(.*?)(?=

)}', ($edit ?: '\1').' [[1]]', ob_get_clean()); if ($User and $User->admin) { -- 2.30.0