From 67eb1fa4d7c6fd005c386757f3d091edcefcbc0f Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Fri, 12 Jul 2024 22:21:38 +0200 Subject: [PATCH] Create the initial author page layout --- .../resources/views/pages/author.blade.php | 34 ++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/packages/framework/resources/views/pages/author.blade.php b/packages/framework/resources/views/pages/author.blade.php index 2833eeb6eb8..baa1c7497fb 100644 --- a/packages/framework/resources/views/pages/author.blade.php +++ b/packages/framework/resources/views/pages/author.blade.php @@ -3,7 +3,39 @@ @section('content')
- // +
+ @if($author->avatar) + {{ $author->name }} + @endif +

{{ $author->name }}

+ @if($author->bio) +

{{ $author->bio }}

+ @endif + @if($author->website) + Website + @endif + @if($author->socials) +
+ @foreach($author->socials as $platform => $handle) + + {{ ucfirst($platform) }} + + @endforeach +
+ @endif +
+ +
+

Posts by {{ $author->name }}

+
    + @foreach($author->getPosts() as $post) +
  • + {{ $post->title }} +

    {{ $post->date?->short }}

    +
  • + @endforeach +
+
@endsection \ No newline at end of file