Fixed bug

Fixed social preview image displaying on littlelink page
This commit is contained in:
JulianPrieber 2022-02-21 20:33:55 +01:00 committed by GitHub
parent 50f838f555
commit 51c16a2d00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -17,8 +17,6 @@
<meta property="og:description" content="{{ $userinfo->littlelink_description }}"> <meta property="og:description" content="{{ $userinfo->littlelink_description }}">
@if(file_exists(base_path("img/$littlelink_name" . ".png" ))) @if(file_exists(base_path("img/$littlelink_name" . ".png" )))
<meta property="og:image" content="{{ asset("img/$littlelink_name" . ".png") }}"> <meta property="og:image" content="{{ asset("img/$littlelink_name" . ".png") }}">
@elseif(file_exists(base_path("littlelink/images/avatar.png" )))
<img class="rounded-avatar" src="{{ asset('littlelink/images/avatar.png') }}" srcset="{{ asset('littlelink/images/avatar@2x.png 2x') }}" width="100px" height="100px">
@else @else
<meta property="og:image" content="{{ asset('littlelink/images/logo.svg') }}"> <meta property="og:image" content="{{ asset('littlelink/images/logo.svg') }}">
@endif @endif