MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<link rel="alternate" hreflang="en" href="https://mintarc.com/minthome/index.php?title=Welcome_to_mintarc" /> | /** | ||
* Add Language Alternate Tags for SEO | |||
*/ | |||
$(document).ready(function() { | |||
// English link | |||
$('head').append('<link rel="alternate" hreflang="en" href="https://mintarc.com/minthome/index.php?title=Welcome_to_mintarc" />'); | |||
<link rel="alternate" hreflang="ja" href="https://mintarc.com/minthome/index.php?title=%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8" /> | // Japanese link | ||
$('head').append('<link rel="alternate" hreflang="ja" href="https://mintarc.com/minthome/index.php?title=%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8" />'); | |||
// X-Default (tells Google which one to use if no language matches) | |||
$('head').append('<link rel="alternate" hreflang="x-default" href="https://mintarc.com/minthome/index.php?title=%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8" />'); | |||
}); | |||
Revision as of 08:08, 11 January 2026
/**
* Add Language Alternate Tags for SEO
*/
$(document).ready(function() {
// English link
$('head').append('<link rel="alternate" hreflang="en" href="https://mintarc.com/minthome/index.php?title=Welcome_to_mintarc" />');
// Japanese link
$('head').append('<link rel="alternate" hreflang="ja" href="https://mintarc.com/minthome/index.php?title=%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8" />');
// X-Default (tells Google which one to use if no language matches)
$('head').append('<link rel="alternate" hreflang="x-default" href="https://mintarc.com/minthome/index.php?title=%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8" />');
});