Add checks to Meta
This commit is contained in:
parent
7324aa31e4
commit
d15fc1838c
1 changed files with 16 additions and 0 deletions
|
|
@ -14,6 +14,22 @@ const Meta = ({
|
|||
if (headerScripts && headerScriptsElement) {
|
||||
headerScriptsElement.outerHTML = headerScripts
|
||||
}
|
||||
|
||||
// Site Url Check
|
||||
if (url === 'https://netlify-cms-react-starter.netlify.com') {
|
||||
console.warn(`Site url may need updating (${url})`)
|
||||
}
|
||||
|
||||
// Title
|
||||
if (!title) {
|
||||
console.error(`Missing Site Title`)
|
||||
}
|
||||
|
||||
// Description
|
||||
if (!description) {
|
||||
console.error(`Missing Site Description`)
|
||||
}
|
||||
|
||||
return (
|
||||
<Helmet>
|
||||
<meta name='description' content={description} />
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue