mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-27 02:06:52 +00:00
48 lines
1.9 KiB
PHP
48 lines
1.9 KiB
PHP
@extends('layouts.app', [
|
|
'title' => $profile->name . ' (@' . $acct . ') - Pixelfed',
|
|
'ogTitle' => $profile->name . ' (@' . $acct . ')',
|
|
'ogType' => 'profile'
|
|
])
|
|
|
|
@php
|
|
$acct = $profile->username . '@' . config('pixelfed.domain.app');
|
|
$metaDescription = \App\Services\AccountService::getMetaDescription($profile->id);
|
|
@endphp
|
|
|
|
@section('content')
|
|
@if (session('error'))
|
|
<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>
|
|
</noscript>
|
|
|
|
@endsection
|
|
|
|
@push('meta')<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">
|
|
<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)<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>
|
|
|
|
@endpush
|