fix: group fediverse "relMe" function
This commit is contained in:
parent
8cd59630f4
commit
1dbd7a2d65
|
@ -5,16 +5,14 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
{{-- Mastodon rel="me" link --}}
|
||||
@foreach($links as $link)
|
||||
@if($link->name === "mastodon")
|
||||
<link href="{{$link->link}}" rel="me">
|
||||
@endif
|
||||
@endforeach
|
||||
{{-- Fediverse rel="me" links --}}
|
||||
@php
|
||||
$relMe = "mastodon, firefish";
|
||||
$relMeList = explode(', ', $relMe);
|
||||
@endphp
|
||||
|
||||
{{-- Firefish rel="me" link --}}
|
||||
@foreach($links as $link)
|
||||
@if($link->name === "firefish")
|
||||
@if(in_array($link->name, $relMeList))
|
||||
<link href="{{$link->link}}" rel="me">
|
||||
@endif
|
||||
@endforeach
|
||||
|
|
Loading…
Reference in New Issue