diff --git a/source/_partials/content/authors/grid-item.blade.php b/source/_partials/content/authors/grid-item.blade.php new file mode 100644 index 00000000..fe9e9b35 --- /dev/null +++ b/source/_partials/content/authors/grid-item.blade.php @@ -0,0 +1,26 @@ +
+
+
+
+ authorEmail))); ?> + Gravatar de {{ $author->author }} +
+
+

{{ $authorsPostsCount[$author->author] }} author] > 1 ? 'artigos':'artigo'; ?>

+
+
+
+
+

+ {{ $author->author }} + @johnsmith + 31m +
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean efficitur sit amet massa + fringilla egestas. Nullam condimentum luctus turpis. +

+
+
+
+
\ No newline at end of file diff --git a/source/_partials/content/authors/grid.blade.php b/source/_partials/content/authors/grid.blade.php new file mode 100644 index 00000000..acc132a4 --- /dev/null +++ b/source/_partials/content/authors/grid.blade.php @@ -0,0 +1,32 @@ +author, $authorsPostsCount)) { + $authorsPostsCount[$post->author] = 0; + $authors[] = (object)[ + 'author' => $post->author, + 'authorEmail' => $post->authorEmail, + ]; + } + + ++$authorsPostsCount[$post->author]; +} + +$columns = 3; +$count = 0; +?> +@if (count($authors) > 0) +
+ @foreach ($authors as $author) +
+ @include('_partials.content.authors.grid-item', ['author' => $author, 'postCount' => $authorsPostsCount]) +
+ @if(++$count % $columns === 0) +
+
+ @endif + @endforeach +
+@endif \ No newline at end of file diff --git a/source/autores.blade.php b/source/autores.blade.php new file mode 100644 index 00000000..0529a23e --- /dev/null +++ b/source/autores.blade.php @@ -0,0 +1,17 @@ + +@extends('_layouts.master') + +@section('body') + +
+
+

Autores

+ @include('_partials.content.authors.grid') +
+ +{{-- @include('_partials.layout.pagination')--}} +
+@endsection +