Code Monkey home page Code Monkey logo

itssweetrain.github.io's Introduction

gatsby-starter-hoodie

A gatsby starter developed for developers to build tech blogs.

πŸš€ About gatsby-starter-hoodie

ν•œκ΅­μ–΄ λ¬Έμ„œ λ°”λ‘œκ°€κΈ°

gatsby-starter-hoodie is a gatsby starter created for writing tech blogs. Markdown, Code Highlighting in various programming languages, and Katex syntax are supported. Also, you can easily categorize articles into tags and series.

Start your blog with a neatly designed gatsby-starter-hoodie that supports dark mode.

This project inspired by velog.

Features

  • Markdown
  • Code Highlighting
  • Katex Syntax
  • Dark Mode (Responsive to the settings of the OS)
  • Tag Categoriazation
  • Series Categorization
  • Responsive Web
  • SEO
  • Utterance (Comment widget)

Getting started your blog with gatsby-starter-hoodie by following steps below. It's very easy πŸ˜‰.

1. Create a Gatsby site

Make sure you have node.js and gatsby-cli installed on your computer.

$ npx gatsby new my-hoodie-blog https://github.com/devHudi/gatsby-starter-hoodie

2. Start dev server

$ cd my-hoodie-blog
$ npm run start

Now you can access to your blog at localhost:8000.

3. Create your own Github repository

Utterance comment widget is based on Github issue system. So you need your own GitHub repository. Also, if you want to publish your blog through Github Pages or Netlify, the Github Repository is a necessary.

If you don't know how to create a GitHub repository, follow the official GitHub documentation.

Add remote repository

git remote add origin https://github.com/{YOUR_GITHUB_NAME}/{YOUR_REPOSITORY_NAME}

4. Write blog-config.js

module.exports = {
  title: "MY BLOG",
  description: "Hello, This is my blog",
  author: "YOUR NAME",
  siteUrl: "https://myblog.com",
  links: {
    github: "https://github.com",
    facebook: "https://www.facebook.com",
    instagram: "https://www.instagram.com",
    etc: "https://www.google.com/",
  },
  utterances: {
    repo: "{YOUR_GITHUB_NAME}/{YOUR_REPOSITORY_NAME}",
    type: "pathname",
  },
}

gatsby-starter-hoodie provides a configuration file called blog-config.js. In this file, you can configure blog, biography (profile), and utterance.

Configure blog-config.js to suit your blog. However, it is recommended not to modify utterances.type.

5. Add your content

Markdown content is in contents/posts. You can write and add your articles. Click here to see the detail writing guide.

6. Deploy your blog

6-1 via Netlify

Deploy to Netlify

Follow the Connecting to Netlify steps in A Step-by-Step Guide: Gatsby on Netlify. It's not difficult.

If you connect the github repository using Netlify, it is automatically distributed whenever you push it, so it is convenient.

6-2. via Github Pages

Case 1

If the repository name is in the form of {YOUR_GITHUB_NAME} .github.io, run it below.

$ npm run deploy-gh

Case 2

If the repository name is not in the form of {YOUR_GITHUB_NAME} .github.io, run it below.

$ npm run deploy-gh-prefix-paths

In the above case, you need to change pathPrefix in gatsby-config.js to your repository name.

6-3. other platforms

$ npm run build

You can build the gatsby website with the command above. The build output is created in the /public directory. Deploy the /public directory using the command for the platform you want to deploy.

7. Cutomize

Project Structure

You can customize your own gatsby-starter-hoodie by referring to the following file structure πŸ™Š.

β”œβ”€β”€ node_modules
β”œβ”€β”€ contents
β”‚Β Β  └── posts // your articles are here
β”œβ”€β”€ public // build outputs are here
└── src
    β”œβ”€β”€ assets
    β”‚Β Β  └── theme // theme config is here
    β”œβ”€β”€ components
    β”‚Β Β  └── Article
    β”‚    Β Β  └── Body
    β”‚        Β Β  └── StyledMarkdown
    β”‚            Β Β  └── index.jsx // markdown styles are here
    β”‚   ...
    β”œβ”€β”€ fonts // webfonts are here
    β”œβ”€β”€ hooks
    β”œβ”€β”€ images
    β”œβ”€β”€ pages // page components are here
    β”œβ”€β”€ reducers
    β”œβ”€β”€ templates // post components are here
    └── utils

itssweetrain.github.io's People

Contributors

itssweetrain avatar cheritssweetrain avatar

Watchers

 avatar

itssweetrain.github.io's Issues

tasks-and-back-stack/

Task And Back Stack

앱을 처음 μ‹€ν–‰ν–ˆμ„ λ•Œ λ§ˆμ£Όν•˜λŠ” ν™”λ©΄λΆ€ν„° λ₯Ό μ΄ν•΄ν•˜κ³ , μ•ˆλ“œλ‘œμ΄λ“œμ˜ 물리 킀에 따라 앑티비티듀이 μ–΄λ–€ μˆœμ„œλ‘œ μž‘λ™ν•˜λŠ”μ§€μ— λŒ€ν•΄ μ•Œκ³ μž μ •λ¦¬ν•˜λŠ” κΈ€ (feat., , ) When launching App.. μ•ˆλ“œλ‘œμ΄λ“œ 앱을 μ‹€ν–‰ν–ˆμ„ λ•Œ, 우리의 λˆˆμ—λŠ” λ¨Όμ € ν•˜λ‚˜μ˜ 화면이 λ³΄μ—¬μ§ˆ 것이닀

https://itssweetrain.netlify.app/tasks-and-back-stack/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.