Преглед на файлове

Update profile view, add AP meta link

Daniel Supernault преди 6 години
родител
ревизия
af290e0215
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  1. 3 2
      resources/views/profile/show.blade.php

+ 3 - 2
resources/views/profile/show.blade.php

@@ -12,10 +12,11 @@
 @endsection
 
 @push('meta')<meta property="og:description" content="{{$profile->bio}}">
-    <meta property="og:image" content="{{$profile->avatarUrl()}}">
-    <link href="{{$profile->permalink('.atom')}}" rel="alternate" title="{{$profile->username}} on PixelFed" type="application/atom+xml">
   @if(false == $settings['crawlable'] || $profile->remote_url)
   <meta name="robots" content="noindex, nofollow">
+  @else  <meta property="og:image" content="{{$profile->avatarUrl()}}">
+    <link href="{{$profile->permalink('.atom')}}" rel="alternate" title="{{$profile->username}} on PixelFed" type="application/atom+xml">
+    <link href='{{$profile->permalink()}}' rel='alternate' type='application/activity+json'>
   @endif
 @endpush