You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.
We often have the situation where we have a language file (site/languages/en.php) for string variables, even when we are only using a single language. It likely that the site will become multilingual at a later date... but we would not want the extra hreflang stuff in the sitemap for just one lang at the present time.
In xmlsitemap.php on line 278 you test for languages with: if ( kirby()->multilang() == true )
This will add hreflang to the sitemap if we have just one language file.
Maybe use languages count instead? if ( kirby()->languages()->count() >1 )
This will add NOT add hreflang to the sitemap if we have just one language file.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We often have the situation where we have a language file (site/languages/en.php) for string variables, even when we are only using a single language. It likely that the site will become multilingual at a later date... but we would not want the extra
hreflang
stuff in the sitemap for just one lang at the present time.In xmlsitemap.php on line 278 you test for languages with:
if ( kirby()->multilang() == true )
This will add
hreflang
to the sitemap if we have just one language file.Maybe use languages count instead?
if ( kirby()->languages()->count() >1 )
This will add NOT add
hreflang
to the sitemap if we have just one language file.The text was updated successfully, but these errors were encountered: