mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 06:39:40 +08:00
Only display pagination link if necessary
Otherwise, search engines start indexing pages that aren't filled yet. Refs #189.
This commit is contained in:
parent
c07ed29057
commit
a331f750cf
@ -16,5 +16,7 @@ $url = app('Flarum\Http\UrlGenerator');
|
||||
@endforeach
|
||||
</ul>
|
||||
|
||||
<a href="{{ $url->to('forum')->route('index') }}?page={{ $page + 1 }}">{{ $translator->trans('core.views.index.next_page_button') }} »</a>
|
||||
@if (isset($document->links->next))
|
||||
<a href="{{ $url->to('forum')->route('index') }}?page={{ $page + 1 }}">{{ $translator->trans('core.views.index.next_page_button') }} »</a>
|
||||
@endif
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user