|
|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
@extends('layouts.app', [
|
|
|
|
|
'title' => $profile->name . ' (@' . $acct . ') - Pixelfed',
|
|
|
|
|
'ogTitle' => $profile->name . ' (@' . $acct . ')',
|
|
|
|
|
'ogType' => 'profile'
|
|
|
|
|
'title' => $profile->name . ' (@' . $acct . ') - Pixelfed',
|
|
|
|
|
'ogTitle' => $profile->name . ' (@' . $acct . ')',
|
|
|
|
|
'ogType' => 'profile'
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
@php
|
|
|
|
|
@ -11,38 +11,42 @@ $metaDescription = $profile->followers_count > 100 ? \App\Services\AccountServic
|
|
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
@if (session('error'))
|
|
|
|
|
<div class="alert alert-danger text-center font-weight-bold mb-0">
|
|
|
|
|
{{ session('error') }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="alert alert-danger text-center font-weight-bold mb-0">
|
|
|
|
|
{{ session('error') }}
|
|
|
|
|
</div>
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
<profile profile-id="{{$profile->id}}" profile-username="{{$profile->username}}" :profile-settings="{{json_encode($settings)}}" profile-layout="metro"></profile>
|
|
|
|
|
|
|
|
|
|
<noscript>
|
|
|
|
|
<div class="container">
|
|
|
|
|
<p class="pt-5 text-center lead">Please enable javascript to view this content.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="container">
|
|
|
|
|
<p class="pt-5 text-center lead">Please enable javascript to view this content.</p>
|
|
|
|
|
</div>
|
|
|
|
|
</noscript>
|
|
|
|
|
|
|
|
|
|
@endsection
|
|
|
|
|
|
|
|
|
|
@push('meta')@if($profile->followers_count > 100)<meta name="description" content="{{$metaDescription}}">
|
|
|
|
|
<meta property="og:description" content="{{$metaDescription}}">
|
|
|
|
|
<meta property="og:image" content="{{$profile->avatarUrl()}}">
|
|
|
|
|
<meta property="og:image:width" content="200">
|
|
|
|
|
<meta property="og:image:height" content="200">@endif
|
|
|
|
|
<meta property="twitter:card" content="summary">
|
|
|
|
|
<meta property="profile:username" content="{{$acct}}">
|
|
|
|
|
<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">
|
|
|
|
|
<meta name="application-name" content="Pixelfed">
|
|
|
|
|
<meta name="generator" content="pixelfed">
|
|
|
|
|
@if($profile->website && $profile->followers_count > 100)<link href="{{$profile->website}}" rel="me" type="text/html">
|
|
|
|
|
@push('meta')@if($profile->followers_count > 100)
|
|
|
|
|
<meta name="description" content="{{$metaDescription}}">
|
|
|
|
|
<meta property="og:description" content="{{$metaDescription}}">
|
|
|
|
|
<meta property="og:image" content="{{$profile->avatarUrl()}}">
|
|
|
|
|
<meta property="og:image:width" content="200">
|
|
|
|
|
<meta property="og:image:height" content="200">@endif
|
|
|
|
|
<meta property="twitter:card" content="summary">
|
|
|
|
|
<meta property="profile:username" content="{{$acct}}">
|
|
|
|
|
<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">
|
|
|
|
|
<meta name="application-name" content="Pixelfed">
|
|
|
|
|
<meta name="generator" content="pixelfed">
|
|
|
|
|
@if($profile->website)
|
|
|
|
|
<link href="{{$profile->website}}" rel="me" type="text/html">
|
|
|
|
|
@endif
|
|
|
|
|
@if(false == $settings['crawlable'] || $profile->remote_url || $profile->followers_count < 100)<meta name="robots" content="noindex, nofollow">@endif
|
|
|
|
|
@endpush
|
|
|
|
|
@if(false == $settings['crawlable'] || $profile->remote_url || $profile->followers_count < 100)<meta name="robots" content="noindex, nofollow">@endif
|
|
|
|
|
@endpush
|
|
|
|
|
|
|
|
|
|
@push('scripts')<script type="text/javascript" src="{{ mix('js/profile.js') }}"></script>
|
|
|
|
|
<script type="text/javascript" defer>App.boot();</script>
|
|
|
|
|
@push('scripts')<script type="text/javascript" src="{{ mix('js/profile.js') }}"></script>
|
|
|
|
|
<script type="text/javascript" defer>
|
|
|
|
|
App.boot();
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
@endpush
|
|
|
|
|
@endpush
|
|
|
|
|
|