Skip to content

Commit

Permalink
Use our own string util to shorten the description
Browse files Browse the repository at this point in the history
  • Loading branch information
Toflar committed May 19, 2021
1 parent bd10538 commit 1054d98
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<?php $this->block('meta'); ?>
<meta name="robots" content="<?= $this->robots ?>">
<meta name="description" content="<?= mb_substr($this->description, 0, 320) ?>">
<meta name="description" content="<?= Contao\StringUtil::substr($this->description, 320) ?>">
<meta name="generator" content="Contao Open Source CMS">
<?php $this->endblock(); ?>

Expand Down Expand Up @@ -94,4 +94,4 @@

<?= $this->mootools ?>
</body>
</html>
</html>

0 comments on commit 1054d98

Please sign in to comment.