Forked from jenswittmann/gist:97bc2e295bac7d2619ed4505641bed52
Created
May 14, 2023 16:38
-
-
Save Ibochkarev/1119876d3c5662d0958ba7ff76f2e2c7 to your computer and use it in GitHub Desktop.
Use MODX BabelLinks snippet for canonical Metatags
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# add snippet into <head> | |
[[BabelLinks? | |
&tpl=`babelCanonicalTag` | |
&showCurrent=`1` ]] | |
# create chunk with name babelCanonicalTag | |
<link rel="alternate" hreflang="[[+cultureKey]]" href="[[+url]]"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment