manifest tweak

This commit is contained in:
Xetera
2019-07-26 18:56:02 -07:00
parent 92d3cd6275
commit 7f7e713f9f
7 changed files with 19 additions and 9 deletions
+5
View File
@@ -0,0 +1,5 @@
import React from "react";
const Sidebar = () => { }
export default Sidebar;
+1
View File
@@ -0,0 +1 @@
export { default as Sidebar } from "./Sidebar";
@@ -3,6 +3,7 @@ authors:
- "@Xetera"
created_at: 2019/07/26
updated_at: 2019/07/26
title: Introduction to Promises
recommended_reading:
- javascript/callbacks
- javascript/es6/arrow-functions
@@ -1,6 +1,7 @@
---
author: "@Xetera"
date: "2019/07/26"
authors:
- "@Xetera"
created_at: "2019/07/26"
---
# Simplifying Promises

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

+5 -3
View File
@@ -1,13 +1,15 @@
import React from "react";
import { graphql } from "gatsby";
import SEO from "../components/SEO";
import Layout from "../components/Layout";
// @todo maybe find alternative type for data
const LanguagePost = ({ data }: any) => {
const { html } = data.file.post;
const { html, frontmatter } = data.file.post;
console.log(data)
return (
<Layout>
<SEO title={frontmatter.title} />
<div dangerouslySetInnerHTML={{ __html: html }} />
</Layout >
)
@@ -21,8 +23,8 @@ export const query = graphql`
post: childMarkdownRemark {
html
frontmatter {
author
date
authors
title
}
}
}