Finalize website

This commit is contained in:
LordMathis 2020-11-08 15:41:15 +01:00
parent 139db50cfd
commit 23c95cf91b
3 changed files with 4 additions and 6 deletions

View File

@ -1,7 +1,7 @@
module.exports = { module.exports = {
siteMetadata: { siteMetadata: {
author: `Matúš Námešný`, author: `Matúš Námešný`,
user: "guest", user: "hello",
hostname: "namesny.com", hostname: "namesny.com",
email: "matus@namesny.com", email: "matus@namesny.com",
social: [ social: [
@ -30,7 +30,7 @@ module.exports = {
{ {
resolve: `gatsby-transformer-remark`, resolve: `gatsby-transformer-remark`,
options: { options: {
filter: node => node.sourceInstanceName === `data`, filter: node => node.sourceInstanceName === `pages`,
type: `MarkdownPage` type: `MarkdownPage`
} }
}, },
@ -44,7 +44,7 @@ module.exports = {
{ {
resolve: `gatsby-transformer-remark`, resolve: `gatsby-transformer-remark`,
options: { options: {
filter: node => node.sourceInstanceName === `pages`, filter: node => node.sourceInstanceName === `posts`,
excerpt_separator: `<!-- end -->`, excerpt_separator: `<!-- end -->`,
type: `BlogPost` type: `BlogPost`
} }

View File

@ -31,8 +31,6 @@ const IndexPage = () => {
} }
`) `)
console.log(data.allMarkdownRemark.edges)
return ( return (
<Layout title="Blog"> <Layout title="Blog">
<Blog edges={data.allMarkdownRemark.edges}/> <Blog edges={data.allMarkdownRemark.edges}/>

View File

@ -7,7 +7,7 @@ export default function Page({ data }) {
const page = data.markdownRemark const page = data.markdownRemark
return ( return (
<Layout> <Layout>
<div className={styles.blogPostWrapper}> <div className={styles.pageWrapper}>
<h1>{page.frontmatter.title}</h1> <h1>{page.frontmatter.title}</h1>
<div dangerouslySetInnerHTML={{ __html: page.html }} /> <div dangerouslySetInnerHTML={{ __html: page.html }} />
</div> </div>