pixelfed/resources/views/profile/show.blade.php

49 lines
1.9 KiB
PHP
Raw Permalink Normal View History

@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
2018-05-30 02:38:21 +00:00
@section('content')
2018-11-09 04:38:43 +00:00
@if (session('error'))
2021-08-31 07:12:16 +00:00
<div class="alert alert-danger text-center font-weight-bold mb-0">
{{ session('error') }}
</div>
2018-11-09 04:38:43 +00:00
@endif
2018-05-30 02:38:21 +00:00
<profile profile-id="{{$profile->id}}" profile-username="{{$profile->username}}" :profile-settings="{{json_encode($settings)}}" profile-layout="metro"></profile>
2020-01-29 07:00:09 +00:00
<noscript>
2021-08-31 07:12:16 +00:00
<div class="container">
<p class="pt-5 text-center lead">Please enable javascript to view this content.</p>
</div>
2020-01-29 07:00:09 +00:00
</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
2020-01-29 07:00:09 +00:00
@push('scripts')<script type="text/javascript" src="{{ mix('js/profile.js') }}"></script>
2021-08-31 07:12:16 +00:00
<script type="text/javascript" defer>App.boot();</script>
2019-12-05 07:24:42 +00:00
@endpush