Hi! I'm Paul. Welcome to my blog! This is made by Gatsby.js and I have several experience in front-end development. Feel free for contact me in Linkedin, Email or Github.
- Gatsby.js 2.3.31
- React.js 16.8.6
- Style-components 4.2.0
- typography 0.16.19
What's inside in my blog project and src directory structure
.
├── components
├── images
├── pages
├── templates
└── utils
-
/components
: components directory, splitting into four components as blog, home, portfolio and resume -
/images
: put images which used in the website -
/pages
: used for routes and my blog posts pages -
/templates
: blog posts and tags templates -
/utils
: Third party utils
- blog
- index
- tag: tags style components
- home
- index
- portfolio
- index
- resume
- common: common style components in each block as info, timeblock and list
- educationBlock:
- employmentBlock
- index
- personInfo
- projectBlock
- skillBlock
- summaryBlock
-
Create a Gatsby site.
Use the Gatsby CLI to create a new site, specifying the default starter.
# create a new Gatsby site using the default starter gatsby new my-default-starter https://github.com/gatsbyjs/gatsby-starter-default
-
Start developing.
Navigate into your new site’s directory and start it up.
cd my-default-starter/ gatsby develop
-
Open the source code and start editing!
Your site is now running at
http://localhost:8000
!Note: You'll also see a second link:
http://localhost:8000/___graphql
. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the Gatsby tutorial.Open the
my-default-starter
directory in your code editor of choice and editsrc/pages/index.js
. Save your changes and the browser will update in real time!