2017-05-24 33 views
1

我要重写我的博客HEXO的meta标签:你如何覆盖生成的元标记?

<meta property="og:type" content="website"> 
<meta property="og:title" content="Borgez"> 
<meta property="og:url" content="http://feliborgez.github.io/blog/index.html"> 
<meta property="og:site_name" content="Borgez"> 
<meta property="og:description" content="The personal blog of Felipe Borgez"> 
<meta name="twitter:card" content="summary"> 
<meta name="twitter:title" content="Borgez"> 
<meta name="twitter:description" content="The personal blog of Felipe Borgez"> 

然而,它们不会出现由主题生成(或者我可以很容易地改变它们)。它们在哪里产生?

回答

1

它们由Hexo生成,可以改善SEO和社交媒体。这里有一个答案它们是如何工作的:What is the attribute property="og:title" inside meta tag?

他们中的大多数可以在改变_config.yml文件,就像og:title是从_config.yml文件的网站的标题。但有些会生成,如og:url