From d51429f9bc266ea8bffa6d04d5ff7f3dafea3f35 Mon Sep 17 00:00:00 2001 From: Bob den Otter Date: Thu, 27 Feb 2020 06:47:01 +0100 Subject: [PATCH] Omit Title in Excerpt by default --- src/Twig/ContentExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Twig/ContentExtension.php b/src/Twig/ContentExtension.php index 8eb8c1147..fa15146d5 100644 --- a/src/Twig/ContentExtension.php +++ b/src/Twig/ContentExtension.php @@ -168,7 +168,7 @@ public function getImage(?Content $content, bool $onlyValues = false) * @param string|Markup|Content $content * @param string|array|null $focus */ - public function getExcerpt($content, int $length = 280, bool $includeTitle = true, $focus = null): string + public function getExcerpt($content, int $length = 280, bool $includeTitle = false, $focus = null): string { if (is_string($content) || $content instanceof Markup) { return Excerpt::getExcerpt((string) $content, $length);