Fix eslint errors

This commit is contained in:
alxshelepenok 2019-01-21 17:18:15 +03:00
parent 2b8cb8a578
commit 7fe055d94e
2 changed files with 14 additions and 17 deletions

View File

@ -51,14 +51,13 @@ module.exports = {
`,
feeds: [{
serialize: ({ query: { site, allMarkdownRemark } }) => (
allMarkdownRemark.edges.map((edge) =>
Object.assign({}, edge.node.frontmatter, {
description: edge.node.frontmatter.description,
date: edge.node.frontmatter.date,
url: site.siteMetadata.site_url + edge.node.fields.slug,
guid: site.siteMetadata.site_url + edge.node.fields.slug,
custom_elements: [{ 'content:encoded': edge.node.html }]
}))
allMarkdownRemark.edges.map((edge) => Object.assign({}, edge.node.frontmatter, {
description: edge.node.frontmatter.description,
date: edge.node.frontmatter.date,
url: site.siteMetadata.site_url + edge.node.fields.slug,
guid: site.siteMetadata.site_url + edge.node.fields.slug,
custom_elements: [{ 'content:encoded': edge.node.html }]
}))
),
query: `
{
@ -144,12 +143,11 @@ module.exports = {
}
`,
output: '/sitemap.xml',
serialize: ({ site, allSitePage }) =>
allSitePage.edges.map((edge) => ({
url: site.siteMetadata.url + edge.node.path,
changefreq: 'daily',
priority: 0.7
}))
serialize: ({ site, allSitePage }) => allSitePage.edges.map((edge) => ({
url: site.siteMetadata.url + edge.node.path,
changefreq: 'daily',
priority: 0.7
}))
}
},
'gatsby-plugin-offline',

View File

@ -18,12 +18,11 @@ const Author = ({ author, isIndex }) => (
<h1 className={styles['author__title']}>
<Link className={styles['author__title-link']} to="/">{author.name}</Link>
</h1>
) :
) : (
<h2 className={styles['author__title']}>
<Link className={styles['author__title-link']} to="/">{author.name}</Link>
</h2>
}
)}
<p className={styles['author__subtitle']}>{author.bio}</p>
</div>
);