Finalize website
This commit is contained in:
parent
139db50cfd
commit
23c95cf91b
|
@ -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`
|
||||
}
|
||||
|
|
|
@ -31,8 +31,6 @@ const IndexPage = () => {
|
|||
}
|
||||
`)
|
||||
|
||||
console.log(data.allMarkdownRemark.edges)
|
||||
|
||||
return (
|
||||
<Layout title="Blog">
|
||||
<Blog edges={data.allMarkdownRemark.edges}/>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue