Gatsby标题元数据未显示

时间:2018-08-03 11:10:11

标签: reactjs gatsby

Gatsby.js没有显示标题元数据,而是显示了site_url

上午使用https://github.com/jaxx2104/gatsby-starter-bootstrap

示例:首页上的http:localhost:8000

http:localhost:8000/about在大约页面上

我希望它只显示网站标题。

gatsby-config.js看起来像这样:

module.exports = {
  siteMetadata: {
    title: 'Indo Maroc Engineering Limited',
    description: 'Construction Company',
    author: 'VishnuDileesh',
    twitter: '',
    adsense: '',
  },

布局index.js看起来像这样

<div>
   <Navi title={siteMetadata.title} {...this.props} />
     {children}
   <Footer title={siteMetadata.title} author={siteMetadata.author} />
</div>

1 个答案:

答案 0 :(得分:1)

使用“反应头盔”来管理反应中的元数据。