From 7f7e713f9f18ad2b5b588113e1369c2380835d49 Mon Sep 17 00:00:00 2001 From: Xetera Date: Fri, 26 Jul 2019 18:56:02 -0700 Subject: [PATCH] manifest tweak --- gatsby-config.js | 8 ++++---- src/components/Docs/Sidebar/index.tsx | 5 +++++ src/components/Docs/index.ts | 1 + src/content/docs/javascript/promises/intro.md | 1 + src/content/docs/javascript/simplifying-promises.md | 5 +++-- src/{components/Navbar => images}/icon.png | Bin src/templates/languagePost.tsx | 8 +++++--- 7 files changed, 19 insertions(+), 9 deletions(-) create mode 100644 src/components/Docs/Sidebar/index.tsx create mode 100644 src/components/Docs/index.ts rename src/{components/Navbar => images}/icon.png (100%) diff --git a/gatsby-config.js b/gatsby-config.js index 428ad8e..5a932e3 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -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 diff --git a/src/components/Docs/Sidebar/index.tsx b/src/components/Docs/Sidebar/index.tsx new file mode 100644 index 0000000..2ec7ed8 --- /dev/null +++ b/src/components/Docs/Sidebar/index.tsx @@ -0,0 +1,5 @@ +import React from "react"; + +const Sidebar = () => { } + +export default Sidebar; \ No newline at end of file diff --git a/src/components/Docs/index.ts b/src/components/Docs/index.ts new file mode 100644 index 0000000..3564e0a --- /dev/null +++ b/src/components/Docs/index.ts @@ -0,0 +1 @@ +export { default as Sidebar } from "./Sidebar"; \ No newline at end of file diff --git a/src/content/docs/javascript/promises/intro.md b/src/content/docs/javascript/promises/intro.md index 97023e0..fd35f46 100644 --- a/src/content/docs/javascript/promises/intro.md +++ b/src/content/docs/javascript/promises/intro.md @@ -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 diff --git a/src/content/docs/javascript/simplifying-promises.md b/src/content/docs/javascript/simplifying-promises.md index 10a844b..730b721 100644 --- a/src/content/docs/javascript/simplifying-promises.md +++ b/src/content/docs/javascript/simplifying-promises.md @@ -1,6 +1,7 @@ --- -author: "@Xetera" -date: "2019/07/26" +authors: + - "@Xetera" +created_at: "2019/07/26" --- # Simplifying Promises diff --git a/src/components/Navbar/icon.png b/src/images/icon.png similarity index 100% rename from src/components/Navbar/icon.png rename to src/images/icon.png diff --git a/src/templates/languagePost.tsx b/src/templates/languagePost.tsx index 6355480..8483fc7 100644 --- a/src/templates/languagePost.tsx +++ b/src/templates/languagePost.tsx @@ -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 ( +
) @@ -21,8 +23,8 @@ export const query = graphql` post: childMarkdownRemark { html frontmatter { - author - date + authors + title } } }