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
+4 -4
View File
@@ -10,7 +10,7 @@ module.exports = {
`gatsby-plugin-styled-components`,
{
resolve: `gatsby-transformer-remark`,
plugins: [`gatsby-remark-vscode`],
plugins: [`gatsby-remark-prismjs`],
},
{
resolve: `gatsby-source-filesystem`,
@@ -32,13 +32,13 @@ module.exports = {
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `gatsby-starter-default`,
name: `The Programmers Hangout`,
short_name: `starter`,
start_url: `/`,
background_color: `#663399`,
theme_color: `#663399`,
theme_color: `#ba1a2e`,
display: `minimal-ui`,
icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
icon: `src/images/icon.png`, // This path is relative to the root of the site.
},
},
// this (optional) plugin enables Progressive Web App + Offline functionality
+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
}
}
}