diff --git a/gatsby-config.js b/gatsby-config.js index cfd2a9c..b28747e 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -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', diff --git a/src/components/Sidebar/Author/Author.js b/src/components/Sidebar/Author/Author.js index 81ceaee..9a65078 100644 --- a/src/components/Sidebar/Author/Author.js +++ b/src/components/Sidebar/Author/Author.js @@ -18,12 +18,11 @@ const Author = ({ author, isIndex }) => (
{author.bio}
);