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>
答案 0 :(得分:1)
使用“反应头盔”来管理反应中的元数据。