Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
thyseus authored and github-actions[bot] committed Nov 8, 2022
1 parent db59909 commit 0b8acea
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions src/Http/Livewire/Posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ public function render()
->twitter();

return view(app('theme') . '.home')->with([
'posts' => $posts,
'pages' => $pages,
'recent' => $recent,
'tags' => Tag::withCount('postsPublished')->where('type', 'category')->get(),
'stickies' => Post::sticky()->published()->get(),
])
'posts' => $posts,
'pages' => $pages,
'recent' => $recent,
'tags' => Tag::withCount('postsPublished')->where('type', 'category')->get(),
'stickies' => Post::sticky()->published()->get(),
])
->layout(config('zeus-sky.layout'));
}
}
4 changes: 2 additions & 2 deletions src/Models/PostScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ public function scopeSticky($query)
public function scopeNotSticky($query)
{
$query->wherePostType('post')->where(function ($q) {
return $q->whereDate('sticky_until', '<=', now())->orWhereNull('sticky_until');
})
return $q->whereDate('sticky_until', '<=', now())->orWhereNull('sticky_until');
})
->whereDate('published_at', '<=', now());
}

Expand Down

0 comments on commit 0b8acea

Please sign in to comment.