1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-23 01:29:41 +01:00

fix <title>

This commit is contained in:
Matthias Kretschmann 2018-12-07 10:11:59 +01:00
parent dbcdf3abf9
commit 097874bb54
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -50,7 +50,6 @@ const SEO = ({ project }) => (
const meta = data.dataYaml
const title = project.title || meta.title
const tagline = meta.tagline
const description = project.description
? truncate.apply(project.description, [320, true])
: truncate.apply(meta.description, [320, true])
@ -61,8 +60,8 @@ const SEO = ({ project }) => (
return (
<Helmet
defaultTitle={`${title.toLowerCase()} { ${tagline.toLowerCase()} }`}
titleTemplate={`%s // ${title.toLowerCase()} { ${tagline.toLowerCase()} }`}
defaultTitle={`${meta.title.toLowerCase()} { ${meta.tagline.toLowerCase()} }`}
titleTemplate={`%s // ${meta.title.toLowerCase()} { ${meta.tagline.toLowerCase()} }`}
>
<html lang="en" />