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

View File

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

View File

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