Fixed default Meta Tags

This commit is contained in:
Julian Prieber 2023-07-22 16:53:39 +02:00
parent 4fc63f2a59
commit 8a81e3c169
1 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@
<meta property="og:url" content="{{ url('') }}">
<meta property="og:type" content="website">
<meta property="og:title" content="{{env('APP_NAME')}}">
<meta property="og:description" content="{{ strip_tags($message->home_message) }}">
<meta property="og:description" content='@if($message->home_message == "default"){!!strip_tags(__('messages.HOME.MESSAGE'))!!}@else{!!$message->home_message!!}@endif'>
@if(file_exists(base_path("assets/linkstack/images/").findFile('avatar')))
<meta property="og:image" content="{{ asset('assets/linkstack/images/'.findFile('avatar')) }}">
@else
@ -32,7 +32,7 @@
<meta property="twitter:domain" content="{{ url('') }}">
<meta property="twitter:url" content="{{ url('') }}">
<meta name="twitter:title" content="{{env('APP_NAME')}}">
<meta name="twitter:description" content="{{ strip_tags($message->home_message) }}">
<meta name="twitter:description" content='@if($message->home_message == "default"){!!strip_tags(__('messages.HOME.MESSAGE'))!!}@else{!!$message->home_message!!}@endif'>
@if(file_exists(base_path("assets/linkstack/images/").findFile('avatar')))
<meta name="twitter:image" content="{{ asset('assets/linkstack/images/'.findFile('avatar')) }}">
@else