Finalize website
This commit is contained in:
parent
139db50cfd
commit
23c95cf91b
|
@ -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`
|
||||||
}
|
}
|
||||||
|
|
|
@ -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}/>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue