Skip to content

Commit

Permalink
Add first diary
Browse files Browse the repository at this point in the history
  • Loading branch information
Masashi Hirano committed May 16, 2019
1 parent 448a37d commit 4e98a39
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 155 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -92,6 +92,6 @@ Looking for more guidance? Full documentation for Gatsby lives [on the website](

## 💫 Deploy

[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/gatsbyjs/gatsby-starter-blog)
[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/shisama/diary)

<!-- AUTO-GENERATED-CONTENT:END -->
Binary file added content/assets/avatar_round.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed content/assets/profile-pic.jpg
Binary file not shown.
19 changes: 19 additions & 0 deletions content/blog/2019-05-16/index.md
@@ -0,0 +1,19 @@
---
date: 2019-05-16
title: May 16, 2019
description: false
---

I started writing diary to improve my writing skill in English. I use [GatsbyJS](https://www.gatsbyjs.org/) for this diary.
I will keep writing as long as possible. I will write once a week at least.

I have had a sore throat and a fever for three days. Also, I have been absent from working for three days.
Today I am better than yesterday. So, I decided to create English diary with GatsbyJS.
First, I built this site with [gatsby-starter-lumen](https://github.com/alxshelepenok/gatsby-starter-lumen).
However, gatsby-starter-lumen requires many meta data (`title`, `date`, `template`, `draft`, `slug`, `category`, `tags`, `description`) every article.
It was annoying me.
It can be solved, but I wanted to start as easy as I can.

So I decided to change and use [gatsby-starter-blog](https://github.com/gatsbyjs/gatsby-starter-blog). It requires few meta info. It requires `title`, `date`, `description`. It is fewer than gatsby-starter-lumen.
However, I want to complete date and title automatically.
If you know about it, please cantact me on [twitter](https://twitter.com/shisama_).
21 changes: 0 additions & 21 deletions content/blog/hello-world/index.md

This file was deleted.

Binary file removed content/blog/hello-world/salty_egg.jpg
Binary file not shown.
108 changes: 0 additions & 108 deletions content/blog/hi-folks/index.md

This file was deleted.

13 changes: 0 additions & 13 deletions content/blog/my-second-post/index.md

This file was deleted.

16 changes: 8 additions & 8 deletions gatsby-config.js
@@ -1,11 +1,11 @@
module.exports = {
siteMetadata: {
title: `Gatsby Starter Blog`,
author: `Kyle Mathews`,
description: `A starter blog demonstrating what Gatsby can do.`,
siteUrl: `https://gatsby-starter-blog-demo.netlify.com/`,
title: `shisama's diary`,
author: `Masashi Hirano`,
description: `My diary.`,
siteUrl: `https://diary.shisama.dev`,
social: {
twitter: `kylemathews`,
twitter: `shisama_`,
},
},
plugins: [
Expand Down Expand Up @@ -57,13 +57,13 @@ module.exports = {
{
resolve: `gatsby-plugin-manifest`,
options: {
name: `Gatsby Starter Blog`,
short_name: `GatsbyJS`,
name: `shisama's diary`,
short_name: `shisama`,
start_url: `/`,
background_color: `#ffffff`,
theme_color: `#663399`,
display: `minimal-ui`,
icon: `content/assets/gatsby-icon.png`,
icon: `content/assets/avatar_round.png`,
},
},
`gatsby-plugin-offline`,
Expand Down
7 changes: 3 additions & 4 deletions src/components/bio.js
Expand Up @@ -38,11 +38,10 @@ function Bio() {
}}
/>
<p>
Written by <strong>{author}</strong> who lives and works in San
Francisco building useful things.
Written by <strong>{author}</strong> who is Node.js Core Collaborator, Web Engineer, OSS developer.
{` `}
<a href={`https://twitter.com/${social.twitter}`}>
You should follow him on Twitter
Please follow me on Twitter.
</a>
</p>
</div>
Expand All @@ -54,7 +53,7 @@ function Bio() {

const bioQuery = graphql`
query BioQuery {
avatar: file(absolutePath: { regex: "/profile-pic.jpg/" }) {
avatar: file(absolutePath: { regex: "/avatar_round.png/" }) {
childImageSharp {
fixed(width: 50, height: 50) {
...GatsbyImageSharpFixed
Expand Down
Binary file modified static/favicon.ico
Binary file not shown.

0 comments on commit 4e98a39

Please sign in to comment.