Skip to content

Commit

Permalink
Fix meta descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiandedeyne committed Jan 29, 2025
1 parent e6caf72 commit d943a6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions resources/views/front/pages/blog/show.blade.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<x-page
title="{{ $post->title }}"
:title="$post->title"
background="/backgrounds/blog-post.png"
body-class="bg-oss-gray"
main-class="font-pt text-oss-royal-blue font-medium text-18 leading-140 antialiased"
og-image="{{ $post->og_image }}"
description="{{ strip_tags($post->summary) }}"
:og-image="$post->og_image"
:description="strip_tags($post->summary)"
>
<article>
<header class="wrapper-lg sm:wrapper-inset-lg mt-6 sm:mt-12 -mb-6 sm:-mb-12 relative z-10">
Expand Down
8 changes: 4 additions & 4 deletions resources/views/layout/partials/meta.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

<title>{!! $title ?? '' !!} | Spatie</title>

<meta name="description" content="{{ $description ?? '' }}">
<meta property="og:title" content="{{ $ogTitle ?? $title ?? '' }}"/>
<meta property="og:description" content="{{ $ogDescription ?? $description ?? '' }}"/>
<meta property="og:image" content="{{ $ogImage ?? url('/images/og-image.jpg') }}"/>
<meta name="description" content="{!! $description ?? '' !!}">
<meta property="og:title" content="{!! $ogTitle ?? $title ?? '' !!}"/>
<meta property="og:description" content="{!! $ogDescription ?? $description ?? '' !!}"/>
<meta property="og:image" content="{!! $ogImage ?? url('/images/og-image.jpg') !!}"/>
<meta property="og:url" content="{{ request()->getUri() }}"/>
<meta property="og:type" content="website" />

Expand Down

0 comments on commit d943a6b

Please sign in to comment.