我有关于为多种语言实现Open Graph元标记的问题。我在ASP.NET MVC上使用多重机制的Web项目。
domailname.com
- 英语语言domailname.com/pl-PL
- 适用于波兰语domailname.com/ru-RU
- 俄语我需要为3种语言添加Open Graph元标记 我的一种英语语言示例:
<meta property="og:title" content="Title Project" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://www.domainname.com" />
<meta property="og:description" content="Description on English" />
<meta property="og:locale" content="en_US" /> //default
<meta property="og:image" content="url png for English verion">
对于三种不同的语言,我需要添加三个不同的图片和三种不同的描述。
也许我可以通过jQuery添加元标记注入,或者你有替代方法吗?