Skip to content

Commit b3704e9

Browse files
authored
Merge pull request #20 from S1SYPHOS/master
Updating alternate language links
2 parents de0d583 + dd26291 commit b3704e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,11 @@ This tag group is used to render HTML `<link>` elements. It takes an `array` of
186186
['href' => url('assets/images/icons/favicon-192.png'), 'sizes' => '192x192', 'type' =>'image/png']
187187
],
188188
'canonical' => $page->url(),
189-
'alternate' => function () {
189+
'alternate' => function ($page) {
190190
$locales = [];
191191

192-
foreach ($site->languages() as $language) {
193-
if ($language->code() == $site->language()) continue;
192+
foreach (kirby()->languages() as $language) {
193+
if ($language->code() == kirby()->language()) continue;
194194

195195
$locales[] = [
196196
'hreflang' => $language->code(),

0 commit comments

Comments
 (0)