Update (seo)
Add (lqip)
This commit is contained in:
@@ -69,9 +69,9 @@ public function getFeaturedImageLqipCdnAttribute()
|
||||
$extension = pathinfo($this->featured_image, PATHINFO_EXTENSION);
|
||||
|
||||
// Append "_lqip" before the extension to create the LQIP image URL
|
||||
$lqipFeaturedImage = str_replace(".{$extension}", "_lqip.{$extension}", $this->featured_image);
|
||||
$lqipFeaturedImage = str_replace(".{$extension}", '_lqip.webp', $this->featured_image);
|
||||
|
||||
return 'https://'.Storage::disk('r2')->url($lqipFeaturedImage);
|
||||
return 'https://'.Storage::disk('r2')->url($lqipFeaturedImage).'?a=bc';
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user