5
5
<head >
6
6
<meta charset =" utf-8" >
7
7
8
- {{-- Mastodon rel="me" link --}}
9
- @foreach ($links as $link )
10
- @if ($link -> name === " mastodon" )
11
- <link href =" {{ $link -> link } }" rel =" me" >
12
- @endif
13
- @endforeach
8
+ {{-- Fediverse rel="me" links --}}
9
+ @php
10
+ $relMe = " mastodon, firefish" ;
11
+ $relMeList = explode (' , ' , $relMe );
12
+ @endphp
14
13
15
- {{-- Firefish rel="me" link --}}
16
14
@foreach ($links as $link )
17
- @if ($link -> name === " firefish " )
15
+ @if (in_array ( $link -> name , $relMeList ) )
18
16
<link href =" {{ $link -> link } }" rel =" me" >
19
17
@endif
20
18
@endforeach
21
-
19
+
22
20
<?php
23
21
// Theme Config
24
22
if (! function_exists (' theme' )) {
@@ -58,7 +56,7 @@ function themeAsset($path){
58
56
@endif
59
57
60
58
@if (env (' CUSTOM_META_TAGS' ) == ' true' )
61
- @include (' layouts.meta' )
59
+ @include (' layouts.meta' )
62
60
@else
63
61
<meta name =" description" content =" {{ $userinfo -> littlelink_description } }" >
64
62
<meta name =" author" content =" {{ $userinfo -> name } }" >
@@ -89,7 +87,7 @@ function themeAsset($path){
89
87
</style >
90
88
@endif
91
89
@endif
92
-
90
+
93
91
<!-- #### BEGIN Meta Tags social media preview images ####-->
94
92
<!-- This shows a preview for title, description and avatar image of users profiles if shared on social media sites -->
95
93
@@ -105,7 +103,7 @@ function themeAsset($path){
105
103
@else
106
104
<meta property =" og:image" content =" {{ asset (' assets/linkstack/images/logo.svg' ) } }" >
107
105
@endif
108
-
106
+
109
107
<!-- Twitter Meta Tags -->
110
108
<meta name =" twitter:card" content =" summary_large_image" >
111
109
<meta property =" twitter:domain" content =" {{ url (' ' ) } } /{{ " @" . $littlelink_name } }" >
@@ -126,7 +124,7 @@ function themeAsset($path){
126
124
{{-- <script>{!! file_get_contents(base_path("assets/external-dependencies/fontawesome.js")) !!}</script> --}}
127
125
<style >{!! str_replace (' ../' , ' studio/' , file_get_contents (base_path (" assets/external-dependencies/fontawesome.css" ))) ! !} </style >
128
126
129
- @include (' layouts.fonts' )
127
+ @include (' layouts.fonts' )
130
128
<style >{!! file_get_contents (base_path (" assets/linkstack/css/normalize.css" )) ! !} </style >
131
129
<style >{!! file_get_contents (base_path (" assets/linkstack/css/animate.css" )) ! !} </style >
132
130
@if (file_exists (base_path (" assets/linkstack/images/" ). findFile (' favicon' )) )
@@ -272,7 +270,7 @@ function themeAsset($path){
272
270
<!-- Short Bio -->
273
271
<style >.description-parent * {margin-bottom : 1em ;}.description-parent {padding-bottom : 30px ;} </style >
274
272
<center ><div class =" fadein description-parent" ><p class =" fadein" >@if (env (' ALLOW_USER_HTML' ) === true ){!! $info -> littlelink_description ! !}@else {{ $info -> littlelink_description } }@endif </p ></div ></center >
275
-
273
+
276
274
<!-- Icons -->
277
275
@php $icons = DB:: table (' links' )-> where (' user_id' , $userinfo -> id )-> where (' button_id' , 94 )-> get (); @endphp
278
276
@if (count ($icons ) > 0 )
@@ -283,7 +281,7 @@ function themeAsset($path){
283
281
</div >
284
282
@endif
285
283
286
- @endforeach
284
+ @endforeach
287
285
288
286
<!-- Buttons -->
289
287
@php $initial = 1 ; @endphp
@@ -344,12 +342,12 @@ function themeAsset($path){
344
342
@endforeach
345
343
346
344
@include (' layouts.footer' )
347
-
345
+
348
346
</div >
349
347
</div >
350
348
</div >
351
349
352
350
@if (theme (' enable_custom_code' ) == " true" and theme (' enable_custom_body_end' ) == " true" and env (' ALLOW_CUSTOM_CODE_IN_THEMES' ) == ' true' )@include ($GLOBALS [' themeName' ] . ' .extra.custom-body-end' )@endif
353
351
354
352
</body >
355
- </html >
353
+ </html >
0 commit comments