We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents de0d583 + dd26291 commit b3704e9Copy full SHA for b3704e9
README.md
@@ -186,11 +186,11 @@ This tag group is used to render HTML `<link>` elements. It takes an `array` of
186
['href' => url('assets/images/icons/favicon-192.png'), 'sizes' => '192x192', 'type' =>'image/png']
187
],
188
'canonical' => $page->url(),
189
- 'alternate' => function () {
+ 'alternate' => function ($page) {
190
$locales = [];
191
192
- foreach ($site->languages() as $language) {
193
- if ($language->code() == $site->language()) continue;
+ foreach (kirby()->languages() as $language) {
+ if ($language->code() == kirby()->language()) continue;
194
195
$locales[] = [
196
'hreflang' => $language->code(),
0 commit comments