From ab4bb9a0204c46c4ebfe1b593811149ac753c119 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 25 Mar 2023 03:38:38 -0600 Subject: [PATCH] Update private profile view, add rel=me support, hide avatar/bio when not logged in and add robots meta tag to block search engine indexing on private profiles --- resources/views/layouts/app-guest.blade.php | 38 +++++++++++++++++++ resources/views/layouts/app.blade.php | 32 ++-------------- resources/views/layouts/spa.blade.php | 7 ++-- .../profile/partial/private-info.blade.php | 2 +- resources/views/profile/private.blade.php | 10 ++--- 5 files changed, 51 insertions(+), 38 deletions(-) create mode 100644 resources/views/layouts/app-guest.blade.php diff --git a/resources/views/layouts/app-guest.blade.php b/resources/views/layouts/app-guest.blade.php new file mode 100644 index 00000000..6adcffac --- /dev/null +++ b/resources/views/layouts/app-guest.blade.php @@ -0,0 +1,38 @@ + + + + + + + + {{ $title ?? config('app.name', 'Pixelfed') }} + + + + + + + @stack('meta') + + + + + + + + + @stack('styles') + + + @include('layouts.partial.nav') +
+ @yield('content') +
+ @include('layouts.partial.footer') + + + + + @stack('scripts') + + diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index 4cd50782..94f90ed9 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -10,7 +10,7 @@ {{ $title ?? config_cache('app.name') }} - + @@ -21,8 +21,8 @@ - - + + @if(request()->cookie('dark-mode')) @@ -58,30 +58,6 @@ @stack('scripts') - - @endauth @@ -91,7 +67,7 @@ - + {{ $title ?? config('app.name', 'Pixelfed') }} diff --git a/resources/views/layouts/spa.blade.php b/resources/views/layouts/spa.blade.php index 68967128..3aa4316c 100644 --- a/resources/views/layouts/spa.blade.php +++ b/resources/views/layouts/spa.blade.php @@ -7,17 +7,18 @@ {{ $title ?? config_cache('app.name') }} - + @stack('meta') + - - + + diff --git a/resources/views/profile/partial/private-info.blade.php b/resources/views/profile/partial/private-info.blade.php index 6b7096bd..aa3eb344 100644 --- a/resources/views/profile/partial/private-info.blade.php +++ b/resources/views/profile/partial/private-info.blade.php @@ -3,7 +3,7 @@
- +
diff --git a/resources/views/profile/private.blade.php b/resources/views/profile/private.blade.php index a738c660..ffff37d4 100644 --- a/resources/views/profile/private.blade.php +++ b/resources/views/profile/private.blade.php @@ -1,4 +1,4 @@ -@extends('layouts.app',['title' => $user->username . " on " . config('app.name')]) +@extends('layouts.app-guest',['title' => $user->username . " on " . config('app.name')]) @section('content') @if (session('error')) @@ -7,7 +7,9 @@
@endif @include('profile.partial.private-info') - +@if($user->website) +{{$user->website}} +@endif
@@ -29,9 +31,5 @@ @endsection @push('meta') - - -@if($user->remote_url) -@endif @endpush