bnomei/kirby3-htmlhead

View on GitHub
snippets/htmlhead/link-canonical.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php if (isset($urls)): foreach ($urls as $url): ?>
<link rel="canonical" href="<?= is_array($url) ? A::get($url, 'url') : $url ?>">
<?php endforeach; endif;