|
64 | 64 | </div> |
65 | 65 | <div class="post_pagination"> |
66 | 66 | <div class="container"> |
67 | | - <a href="javascript:;" class="pagination__left"> |
68 | | - <svg id="icon-arrow-thin-left" fill="none" viewBox="0 0 31.344 105.69" stroke="currentColor" stroke-width="3px" fill-rule="evenodd" width="100%" height="100%"> |
69 | | - <path d="M29.844 2.86l-25 50 25 50"></path> |
70 | | - </svg> |
71 | | - <div class="pagination__content"> |
72 | | - <h4>Puphpeteer: A Puppeteer bridge for PHP</h4> |
73 | | - <p>Puphpeteer by Johann Pardanaud is PHP bridge for Google Chrome’s Puppeteer headless chrome Node.js API. Learn h…</p> |
74 | | - </div> |
75 | | - </a> |
76 | | - <a href="javascript:;" class="pagination__right"> |
77 | | - <svg id="icon-arrow-thin-right" fill="none" viewBox="0 0 30.69 103" stroke="currentColor" stroke-width="3px" fill-rule="evenodd" width="100%" height="100%"> |
78 | | - <path d="M4.19 1.51l25 50-25 50"></path> |
79 | | - </svg> |
80 | | - <div class="pagination__content"> |
81 | | - <h4>Built with Jigsaw – the Ultimate Showcase of Web Sites Built with Jigsaw</h4> |
82 | | - <p>“Built with Jigsaw” is a gallery of websites made with Jigsaw, and includes helpful articles about using…</p> |
83 | | - </div> |
84 | | - </a> |
| 67 | + @if(!is_null($prevPost)) |
| 68 | + <a href="{{ route('blog.post', ['slug' => $prevPost->slug]) }}" class="pagination__left"> |
| 69 | + <svg id="icon-arrow-thin-left" fill="none" viewBox="0 0 31.344 105.69" stroke="currentColor" stroke-width="3px" fill-rule="evenodd" width="100%" height="100%"> |
| 70 | + <path d="M29.844 2.86l-25 50 25 50"></path> |
| 71 | + </svg> |
| 72 | + <div class="pagination__content"> |
| 73 | + <h4>{{ $prevPost->title }}</h4> |
| 74 | + <p>{{ str_limit($prevPost->excerpt, 110) }}</p> |
| 75 | + </div> |
| 76 | + </a> |
| 77 | + @endif |
| 78 | + @if(!is_null($nextPost)) |
| 79 | + <a href="{{ route('blog.post', ['slug' => $nextPost->slug]) }}" class="pagination__right"> |
| 80 | + <svg id="icon-arrow-thin-right" fill="none" viewBox="0 0 30.69 103" stroke="currentColor" stroke-width="3px" fill-rule="evenodd" width="100%" height="100%"> |
| 81 | + <path d="M4.19 1.51l25 50-25 50"></path> |
| 82 | + </svg> |
| 83 | + <div class="pagination__content"> |
| 84 | + <h4>{{ $nextPost->title }}</h4> |
| 85 | + <p>{{ str_limit($nextPost->excerpt, 110) }}</p> |
| 86 | + </div> |
| 87 | + </a> |
| 88 | + @endif |
85 | 89 | </div> |
86 | 90 | </div> |
87 | 91 |
|
|
0 commit comments