Skip to content

Commit

Permalink
Add nofollow to all pagination links
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuluru committed Dec 11, 2018
1 parent 036e25e commit 154c6fd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
8 changes: 8 additions & 0 deletions config/paginator-templates.php
@@ -0,0 +1,8 @@
<?php
return [
'number' => '<li><a href="{{url}}" rel="nofollow">{{text}}</a></li>',
'nextActive' => '<li class="next"><a rel="next nofollow" aria-label="Next" href="{{url}}">' .
'<span aria-hidden="true">{{text}}</span></a></li>',
'prevActive' => '<li class="previous"><a rel="prev nofollow" aria-label="Previous" href="{{url}}">' .
'<span aria-hidden="true">{{text}}</span></a></li>',
];
4 changes: 1 addition & 3 deletions src/Template/Franchises/index.ctp
Expand Up @@ -99,9 +99,7 @@ else:
</table>
</div>
<nav class="paginator"><ul class="pagination">
<?= $this->Paginator->numbers(['prev' => true, 'next' => true, 'templates' => [
'number' => '<li><a href="{{url}}" rel="nofollow">{{text}}</a></li>',
]]) ?>
<?= $this->Paginator->numbers(['prev' => true, 'next' => true]) ?>
</ul></nav>
<?php
endif;
Expand Down
4 changes: 1 addition & 3 deletions src/Template/Teams/index.ctp
Expand Up @@ -72,9 +72,7 @@ else:
</table>
</div>
<nav class="paginator"><ul class="pagination">
<?= $this->Paginator->numbers(['prev' => true, 'next' => true, 'templates' => [
'number' => '<li><a href="{{url}}" rel="nofollow">{{text}}</a></li>',
]]) ?>
<?= $this->Paginator->numbers(['prev' => true, 'next' => true]) ?>
</ul></nav>
<?php
endif;
Expand Down

0 comments on commit 154c6fd

Please sign in to comment.