feat: Enhance social media sharing meta image for blogpost

- Update OpenGraph and Twitter meta tags in app.blade.php to dynamically set og:image based on content.
- Modify show.blade.php to include post thumbnail as og_image for better social media sharing.
This commit is contained in:
Rico van Zelst
2024-04-01 16:22:23 +02:00
parent 87cf644b1e
commit 7ad53814d3
2 changed files with 6 additions and 3 deletions

View File

@@ -1,9 +1,11 @@
@use('Carbon\Carbon')
@extends('layouts.app')
@section('title', $post->title . ' • Heimerdinger.LoL')
@section('title', $post->title)
@section('description', 'Heimerdinger.LoL: ' . $post->description)
@section('og_image', $post->thumbnail)
@push('meta_tags')
<link rel="canonical" href="{{ config('app.HEIMER_URL') . '/post/' . $post->slug }}">