From 4aee482f4a168c056069f96e3d3fb3f7fe75e176 Mon Sep 17 00:00:00 2001 From: Joe Dixon Date: Tue, 7 Jul 2020 12:19:48 +0100 Subject: [PATCH 1/2] Show pinned articles --- resources/views/livewire/show-articles.blade.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/resources/views/livewire/show-articles.blade.php b/resources/views/livewire/show-articles.blade.php index fe069033a..deb8a49b0 100644 --- a/resources/views/livewire/show-articles.blade.php +++ b/resources/views/livewire/show-articles.blade.php @@ -16,9 +16,14 @@ @endforeach -

- {{ $article->title() }} -

+ + @if($article->isPinned()) + + @endif +

+ {{ $article->title() }} +

+

{{ $article->excerpt() }}

From 4d6493d480b9da5416031c669fd74f119f8c3863 Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Wed, 8 Jul 2020 17:18:45 +0200 Subject: [PATCH 2/2] Update show-articles.blade.php --- resources/views/livewire/show-articles.blade.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/views/livewire/show-articles.blade.php b/resources/views/livewire/show-articles.blade.php index deb8a49b0..566a892fd 100644 --- a/resources/views/livewire/show-articles.blade.php +++ b/resources/views/livewire/show-articles.blade.php @@ -7,7 +7,7 @@ @foreach($articles as $article)
- @foreach($article->tags() as $tag) + @foreach ($article->tags() as $tag)
- @if($article->isPinned()) + @if ($article->isPinned()) @endif +

{{ $article->title() }}