Skip to content

Commit

Permalink
#296 - seo meta tags (#342)
Browse files Browse the repository at this point in the history
fix fb meta tags placement
  • Loading branch information
AleksandraKozubal authored Sep 2, 2024
1 parent 9d3ab84 commit 1868cfa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions resources/views/layout/public.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content=@yield('description')>
<meta name="robots" content="index, follow">
@yield('meta')
<link rel="shortcut icon" href="{{ asset('identification/sygnet.svg') }}" type="image/x-icon">
@vite('resources/js/app.ts')
<script src="https://kit.fontawesome.com/f6187d55ef.js" crossorigin="anonymous"></script>
Expand Down
4 changes: 3 additions & 1 deletion resources/views/single-news.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@
@section("title", $news['title'])
@section("description", $news['subtitle'])

@section("content")
@section("meta")
<meta property="og:url" content="{{ $articleUrl }}"/>
<meta property="og:type" content="article"/>
<meta property="og:title" content="{{ $news['title'] }}"/>
<meta property="og:description" content="{{ $news['subtitle'] }}"/>
<meta property="og:image" content="https://blumilk.pl/storage/{{ $news['photo'] }}"/>
@endsection

@section("content")
<section class="2xl:mx-[10%] 3xl:max-w-screen-2xl 3xl:mx-auto -mb-32">
<div class="w-full h-[232px] sm:h-[594px] overflow-hidden order-2 lg:order-1 lg:mt-0">
<img src="{{ asset("storage/".$news['photo']) }}"
Expand Down

0 comments on commit 1868cfa

Please sign in to comment.