|
|
24 |
|
25 |
if (isset($this->config->variables['post'])) {
|
26 |
/** @var Post $post */
|
27 |
$post = $this->config->variables['post'];
|
28 |
|
29 |
$next = Post::whereAfter('published', $post->published)->oldestFirst()->first();
|
30 |
$previous = Post::whereBefore('published', $post->published)->latestFirst()->first();
|
31 |
|
32 |
$this->withTitle($post->title);
|
33 |
$this->withDescription($post->description);
|
34 |
$this->withAuthor($post->author->nickname);
|
35 |
|
36 |
if (empty($post->tag_list) === false) {
|
37 |
$this->withKeywords($post->tag_list);
|
38 |
}
|
39 |
|
40 |
$this->with('next', $next);
|
41 |
$this->with('previous', $previous);
|
42 |
}
|
43 |
}
|
44 |
|
|
|