/blog-source-code

Source code for https://swapnilmishra.github.io/

Primary LanguageJavaScriptMIT LicenseMIT

🧐 What's inside?

Here are the top-level files and directories you'll see in a site created using the blog theme starter:

gatsby-starter-blog-theme
β”œβ”€β”€ content
β”‚   β”œβ”€β”€ assets
β”‚   β”‚   └── avatar.png
β”‚   └── posts
β”‚       β”œβ”€β”€ hello-world.mdx
β”‚       └── my-second-post.mdx
β”œβ”€β”€ src
β”‚   └── gatsby-theme-blog
β”‚       β”œβ”€β”€ components
β”‚       β”‚   └── bio-content.js
β”‚       └── gatsby-theme-ui
β”‚           └── colors.js
β”œβ”€β”€ .gitignore
β”œβ”€β”€ .prettierrc
β”œβ”€β”€ gatsby-config.js
β”œβ”€β”€ LICENSE
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ package.json
└── README.md
  1. /content: A content folder holding assets that the theme expects to exist. This will vary from theme to theme -- this starter is set up to get you started with the blog theme, which expects an image asset for your avatar, and blog post content. Replace the avatar image file, delete the demo posts, and add your own!

  2. /src: You will probably want to customize your site to personalize it. The files under /src/gatsby-theme-blog shadow, or override, the files of the same name in the gatsby-theme-blog package. To learn more about this, check out the guide to getting started with using the blog theme starter.

  3. .gitignore: This file tells git which files it should not track / not maintain a version history for.

  4. .prettierrc: This file tells Prettier which configuration it should use to lint files.

  5. gatsby-config.js: This is the main configuration file for a Gatsby site. This is where you can specify information about your site (metadata) like the site title and description, which Gatsby plugins you’d like to include, etc. When using themes, it's where you'll include the theme plugin, and any customization options the theme provides.

  6. LICENSE: Gatsby is licensed under the MIT license.

  7. package-lock.json (See package.json below, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. (You won’t change this file directly).

  8. package.json: A manifest file for Node.js projects, which includes things like metadata (the project’s name, author, etc). This manifest is how npm knows which packages to install for your project.

  9. README.md: A text file containing useful reference information about your project.

πŸš€ Publish

Running yarn run publish:blog will first build the assets and then push the changes to https://github.com/swapnilmishra/swapnilmishra.github.io