1+ <meta charset =" utf-8" >
2+
3+ {{-- Fediverse rel="me" links --}}
4+ @php
5+ $relMe = " mastodon, firefish, streams" ;
6+ $relMeList = explode (' , ' , $relMe );
7+ @endphp
8+
9+ @foreach ($links as $link )
10+ @if (in_array ($link -> name , $relMeList ) )
11+ <link href =" {{ $link -> link } }" rel =" me" >
12+ @endif
13+ @endforeach
14+
15+ @if (env (' CUSTOM_META_TAGS' ) == ' true' )
16+ @include (' layouts.meta' )
17+ @else
18+ <meta name =" description" content =" {{ $userinfo -> littlelink_description } }" >
19+ <meta name =" author" content =" {{ $userinfo -> name } }" >
20+ <meta name =" viewport" content =" width=device-width, initial-scale=1" >
21+ @endif
22+
23+ <!-- #### BEGIN Meta Tags social media preview images ####-->
24+ <!-- This shows a preview for title, description and avatar image of users profiles if shared on social media sites -->
25+
26+ <!-- Facebook Meta Tags -->
27+ <meta property =" og:url" content =" {{ url (' ' ) } } /{{ " @" . $littlelink_name } }" >
28+ <meta property =" og:type" content =" website" >
29+ <meta property =" og:title" content =" {{ $userinfo -> name } }" >
30+ <meta property =" og:description" content =" {{ strip_tags ($userinfo -> littlelink_description ) } }" >
31+ @if (file_exists (base_path (findAvatar ($userinfo -> id ))) )
32+ <meta property =" og:image" content =" {{ url (findAvatar ($userinfo -> id )) } }" >
33+ @elseif (file_exists (base_path (" assets/linkstack/images/" ). findFile (' avatar' )) )
34+ <meta property =" og:image" content =" {{ url (" assets/linkstack/images/" ). " /" . findFile (' avatar' ) } }" >
35+ @else
36+ <meta property =" og:image" content =" {{ asset (' assets/linkstack/images/logo.svg' ) } }" >
37+ @endif
38+
39+ <!-- Twitter Meta Tags -->
40+ <meta name =" twitter:card" content =" summary_large_image" >
41+ <meta property =" twitter:domain" content =" {{ url (' ' ) } } /{{ " @" . $littlelink_name } }" >
42+ <meta property =" twitter:url" content =" {{ url (' ' ) } } /{{ " @" . $littlelink_name } }" >
43+ <meta name =" twitter:title" content =" {{ $userinfo -> littlelink_name } }" >
44+ <meta name =" twitter:description" content =" {{ strip_tags ($userinfo -> littlelink_description ) } }" >
45+ @if (file_exists (base_path (findAvatar ($userinfo -> id ))) )
46+ <meta name =" twitter:image" content =" {{ url (findAvatar ($userinfo -> id )) } }" >
47+ @elseif (file_exists (base_path (" assets/linkstack/images/" ). findFile (' avatar' )) )
48+ <meta name =" twitter:image" content =" {{ url (" assets/linkstack/images/" ). " /" . findFile (' avatar' ) } }" >
49+ @else
50+ <meta name =" twitter:image" content =" {{ asset (' assets/linkstack/images/logo.svg' ) } }" >
51+ @endif
52+
53+ <!-- #### END Meta Tags social media preview images ####-->
54+
55+ @if (config (' advanced-config.linkstack_title' ) != ' ' and env (' HOME_URL' ) === ' ' )
56+ <title >{{ $userinfo -> name } } {{ config (' advanced-config.linkstack_title' ) } } </title >
57+ @elseif (env (' CUSTOM_META_TAGS' ) == ' true' and config (' advanced-config.title' ) != ' ' )
58+ <title >{{ config (' advanced-config.title' ) } } </title >
59+ @elseif (env (' HOME_URL' ) != ' ' )
60+ <title >{{ $userinfo -> name } } </title >
61+ @else
62+ <title >{{ $userinfo -> name } } 🔗 {{ config (' app.name' ) } } </title >
63+ @endif
64+
65+ @include (' components.favicon' )
66+ @include (' components.favicon-extension' )
67+
68+ @if (file_exists (base_path (" assets/linkstack/images/" ). findFile (' favicon' )) )
69+ <link rel =" icon" type =" image/png" href =" {{ asset (' assets/linkstack/images/' . findFile (' favicon' )) } }" >
70+ @else
71+ <link rel =" icon" type =" image/svg+xml" href =" {{ asset (' assets/linkstack/images/logo.svg' ) } }" >
72+ @endif
73+
74+ @include (' layouts.analytics' )
0 commit comments