1
0
mirror of https://github.com/typemill/typemill.git synced 2025-08-07 22:56:32 +02:00

Version 1.5.1: Lazy loading images and ping sitemap

This commit is contained in:
trendschau
2021-10-22 23:58:01 +02:00
parent d1d7d61b4e
commit 2e12e184d3
10 changed files with 78 additions and 20 deletions

View File

@@ -200,6 +200,20 @@ class ParsedownExtension extends \ParsedownExtra
return $block;
}
protected function inlineImage($excerpt)
{
$image = parent::inlineImage($excerpt);
if ( ! isset($image))
{
return null;
}
$image['element']['attributes']['loading'] = "lazy";
return $image;
}
protected function blockTable($Line, array $Block = null)
{