ssoxong / ssoxong.github.io

MIT License
0 stars 0 forks source link

๐Ÿฆฅ Minimal Mistakes theme customized by choiiis

๐Ÿ“Ž ๋ธ”๋กœ๊ทธ ๋ฐ”๋กœ ๊ฐ€๊ธฐ https://choiiis.github.io/


fork ํ•ด์„œ ์‚ฌ์šฉํ•˜์‹œ๊ธฐ ํŽธํ•˜๊ฒŒ ๋ณ€๊ฒฝํ•ด์„œ ์ƒˆ๋กœ ์˜ฌ๋ ค๋ด…๋‹ˆ๋‹ค.
ํŽธํ•˜๊ฒŒ ์‚ฌ์šฉํ•˜์‹œ๊ณ , fork ํ•˜์‹ค ๋•Œ star ํ•˜๋‚˜๋งŒ ๋ˆŒ๋Ÿฌ์ฃผ์„ธ์šฉ :)

fork ํ›„ ์„ค์ •์ด ํ•„์š”ํ•œ ์‚ฌํ•ญ๋“ค์€ ์•„๋ž˜ ๋‚ด์šฉ์„ ์ฐธ๊ณ ํ•˜์„ธ์š”!

โ–ช ๋ธ”๋กœ๊ทธ ๊ธฐ๋ณธ ์ •๋ณด ์„ธํŒ…

[_config.yml]

# plum skin ํ™œ์šฉํ•˜์—ฌ ์ƒ‰์ƒ ์„ค์ •ํ•จ. ๋ณ€๊ฒฝํ•˜๋ ค๋ฉด _sass/minimal-mistakes/skins/_plum.scss ์—์„œ ๋ณ€๊ฒฝํ•˜๊ฑฐ๋‚˜
# ํ•ด๋‹น ๋””๋ ‰ํ† ๋ฆฌ ๋‚ด์˜ ๋‹ค๋ฅธ ํ…Œ๋งˆ๋กœ ๋ณ€๊ฒฝ ๊ฐ€๋Šฅ (minimal-mistakes ๊ธฐ๋ณธ ์ œ๊ณต ํ…Œ๋งˆ)
minimal_mistakes_skin: "plum" # "default" "air", "aqua", ...

# Site Settings
locale: "ko-KR" #"en-US"
title: "Blog Name Here" # ์ƒ๋‹จ ํ—ค๋”์— ๋ณด์ด๋Š” ๋ธ”๋กœ๊ทธ ํƒ€์ดํ‹€
title_separator: "|"
subtitle: # site tagline that appears below site title in masthead
name: "your name here" # ๋ธ”๋กœ๊ทธ ๋‹‰๋„ค์ž„ ์„ค์ •
description: "OOOOO DevLog" # ๋ธ”๋กœ๊ทธ ์„ค๋ช…
url: "https://github-account.github.io" # ๋ธ”๋กœ๊ทธ URL
baseurl: # the subpath of your site, e.g. "/blog"
repository: "github-account/github-account.github.io" # GitHub Repo ์ด๋ฆ„
# logo : # ์ƒ๋‹จ ํ—ค๋”์˜ ๋ธ”๋กœ๊ทธ ํƒ€์ดํ‹€ ์•ž์— ๋กœ๊ณ  ์ถ”๊ฐ€ํ•˜๊ณ  ์‹ถ์„ ๊ฒฝ์šฐ ์‚ฌ์šฉ

---
# Site Author (Home์—์„œ ํ•ด๋‹น ๋‚ด์šฉ์€ ์ˆจ๊น€ ์ƒํƒœ)
author:
  name: "your name here" # ๋ธ”๋กœ๊ทธ ๋‹‰๋„ค์ž„
  avatar: "/assets/images/meee.png" # ๋ธ”๋กœ๊ทธ ํ”„๋กœํ•„ ์‚ฌ์ง„
  #   bio              : "hi all!"
  # location         : "Seoul, Korea"
  # email            : "youremailhere@xxxxxx.com"

โ–ช favicon ๋ณ€๊ฒฝ

  1. https://www.favicon-generator.org/ ์ ‘์†ํ•˜์—ฌ ์›ํ•˜๋Š” ์ด๋ฏธ์ง€๋ฅผ favicon์œผ๋กœ ์ƒ์„ฑ
  2. ์ƒ์„ฑ๋œ ํŒŒ์ผ assets/images/favicon/ ๋””๋ ‰ํ† ๋ฆฌ์— ์ €์žฅ
    *์ฃผ์˜) ๋กœ์ปฌ ์‹คํ–‰ ์‹œ ๋ณ€๊ฒฝ ๋‚ด์—ญ์ด ๋ฐ˜์˜๋˜์ง€ ์•Š์„ ์ˆ˜ ์žˆ์Œ. push ํ•ด์„œ ํ™•์ธ ํ•„์š”.
  3. _layouts/default.html์˜ github-account.github.io ๋ถ€๋ถ„์— ๋ณธ์ธ ๋ธ”๋กœ๊ทธ URL ์ž…๋ ฅ
<link
  rel="apple-touch-icon"
  sizes="180x180"
  href="https://github-account.github.io/assets/images/favicon/apple-touch-icon.png"
/>
<link
  rel="icon"
  type="image/png"
  sizes="32x32"
  href="https://github-account.github.io/assets/images/favicon/favicon-32x32.png"
/>
<link
  rel="icon"
  type="image/png"
  sizes="16x16"
  href="https://github-account.github.io/assets/images/favicon/favicon-16x16.png"
/>
<link
  rel="manifest"
  href="https://github-account.github.io/assets/images/favicon/site.webmanifest"
/>
<link
  rel="mask-icon"
  href="https://github-account.github.io/assets/images/favicon/safari-pinned-tab.svg"
  color="#5bbad5"
/>

โ–ช ์ƒ๋‹จ ํ—ค๋” ์šฐ์ธก ๋„ค๋น„๊ฒŒ์ด์…˜ ๊ด€๋ฆฌ

[_data/navigation.yml]

# main links
main:
  - title: "Home"
    url: https://your-blog-url-here/ # ๋ธ”๋กœ๊ทธ HOME ๋ฐ”๋กœ๊ฐ€๊ธฐ

  - title: "About"
    url: /about/ #_pages/about.md ์—ฐ๊ฒฐ

  - title: "GitHub"
    url: https://github.com/github-account # ๊นƒํ—ˆ๋ธŒ ๋ฐ”๋กœ๊ฐ€๊ธฐ (๋ณธ์ธ ๊นƒํ—ˆ๋ธŒ๋กœ ๋ณ€๊ฒฝ)

  # ์นดํ…Œ๊ณ ๋ฆฌ ๊ธฐ๋Šฅ์ด ํ•„์š”ํ•˜๋ฉด ํ™œ์„ฑํ™” ํ•˜๊ธฐ (_pages/categories-archive.md ์—ฐ๊ฒฐ)
  # - title: "Categories"
  #   url: /categories/

โ–ช ์นดํ…Œ๊ณ ๋ฆฌ ์ˆ˜์ •

์นดํ…Œ๊ณ ๋ฆฌ์— ํ•ญ๋ชฉ์„ ์ถ”๊ฐ€ํ•˜๊ณ  ์‹ถ์„ ๊ฒฝ์šฐ, _pages/categories/ ํ•˜์œ„์— md ํŒŒ์ผ ์ถ”๊ฐ€

_pages/categories/category-categories1.md ํŒŒ์ผ ์ž‘์„ฑ ์˜ˆ์‹œ (ex. category-algorithm.md)

title: "Categories1" # ์นดํ…Œ๊ณ ๋ฆฌ ์ด๋ฆ„
layout: category
permalink: /categories/categories1/ # url
author_profile: true
taxonomy: Categories1
sidebar:
nav: "categories"

์นดํ…Œ๊ณ ๋ฆฌ ์ด๋ฆ„๊ณผ url์„ _data/navigation.yml์— ์ถ”๊ฐ€

# sidebar navigation (categories)
categories:
  - title: "Categories1"
    url: /categories/categories1/
  - title: "Categories2"
    url: /categories/categories2/
  - title: "Categories3"
    url: /categories/categories3/
  - title: "Categories4"
    url: /categories/categories4/

2022.09.24 Update : ํ•˜์œ„ ์นดํ…Œ๊ณ ๋ฆฌ ํฌํ•จ ๋ฉ”๋‰ด (categories-ver2 branch)
ver2.0 ์นดํ…Œ๊ณ ๋ฆฌ ํ˜•ํƒœ ๋ฌธ์˜๊ฐ€ ์žˆ์–ด์„œ categories-ver2 ๋ธŒ๋žœ์น˜์— ์—…๋ฐ์ดํŠธ ํ–ˆ์Šต๋‹ˆ๋‹ค.
์˜ˆ์‹œ๋Š” ํŽ˜์ด์ง€ ํ•˜๋‹จ '๊ฐœ๋ฐœ ๊ธฐ๋ก' ๋ถ€๋ถ„์—์„œ ํ™•์ธํ•˜์‹ค ์ˆ˜ ์žˆ์–ด์š”!

์ฐธ๊ณ ) _data/navigation.yml๋งŒ ์•„๋ž˜์™€ ๊ฐ™์ด ๋ณ€๊ฒฝํ•ด์ฃผ์…”๋„ ๋ฉ๋‹ˆ๋‹ค.

categories:
  - title: "Title1"
    children:
      - title: "Categories1"
        url: /categories/categories1/
      - title: "Categories2"
        url: /categories/categories2/
      - title: "Categories3"
        url: /categories/categories3/
      - title: "Categories4"
        url: /categories/categories4/

  - title: "Title2"
    children:
      - title: "Categories5"
        url: /categories/categories5/
      - title: "Categories6"
        url: /categories/categories6/

  - title: "Title3"
    children:
      - title: "Categories7"
        url: /categories/categories7/

โ–ช ํฌ์ŠคํŠธ ์ž‘์„ฑ

  1. _posts/YYYY-MM-DD-post-name-here.md ํŒŒ์ผ ์ƒ์„ฑ
  2. ํฌ์ŠคํŠธ์— ์‚ฌ์šฉํ•  ์ด๋ฏธ์ง€๋Š” assets/images/posts_img/post-name-here/ ํ•˜์œ„์— ์ €์žฅ
  3. ํฌ์ŠคํŠธ front matter ์ž‘์„ฑ
---
title: "[ํฌ์ŠคํŒ… ์˜ˆ์‹œ] ์ด๊ณณ์— ์ œ๋ชฉ์„ ์ž…๋ ฅํ•˜์„ธ์š”"
excerpt: "๋ณธ๋ฌธ์˜ ์ฃผ์š” ๋‚ด์šฉ์„ ์—ฌ๊ธฐ์— ์ž…๋ ฅํ•˜์„ธ์š”"

categories: # ์นดํ…Œ๊ณ ๋ฆฌ ์„ค์ •
  - categories1
tags: # ํฌ์ŠคํŠธ ํƒœ๊ทธ
  - [tag1, tag2]

permalink: /categories1/post-name-here/ # ํฌ์ŠคํŠธ URL

toc: true # ์šฐ์ธก์— ๋ณธ๋ฌธ ๋ชฉ์ฐจ ๋„ค๋น„๊ฒŒ์ด์…˜ ์ƒ์„ฑ
toc_sticky: true # ๋ณธ๋ฌธ ๋ชฉ์ฐจ ๋„ค๋น„๊ฒŒ์ด์…˜ ๊ณ ์ • ์—ฌ๋ถ€

date: 2020-05-21 # ์ž‘์„ฑ ๋‚ ์งœ
last_modified_at: 2021-10-09 # ์ตœ์ข… ์ˆ˜์ • ๋‚ ์งœ
---
  1. front matter ํ•˜๋‹จ์— ํฌ์ŠคํŒ… ๋‚ด์šฉ ์ž‘์„ฑ
# Defaults
defaults:
  # _posts
  - scope:
      path: ""
      type: posts
    values:
      layout: single
      author_profile: true
      read_time: #true
      show_date: true
      comments: true
      # share: true
      related: true
      sidebar:
        nav: "categories"

โ–ช ๋Œ“๊ธ€ ๊ธฐ๋Šฅ (utterances ์‚ฌ์šฉ)

utterances ๊ด€๋ จํ•ด์„œ ๊ตฌ๊ธ€๋ง ํ•ด๋ณด๊ณ  ์ง„ํ–‰ํ•˜๊ธฐ๋ฅผ ์ถ”์ฒœ.
๊ธฐ๋ณธ์ ์ธ ์„ธํŒ… ๋ฐฉ๋ฒ•์„ ์„ค๋ช…ํ•˜์ž๋ฉด,

  1. ๋ณธ์ธ GitHub์— utterances์šฉ repository ์ƒ์„ฑ
  2. https://github.com/apps/utterances์— ์ ‘์†ํ•˜์—ฌ ์ƒ์„ฑํ•œ repo ์„ ํƒ ํ›„ install
  3. _config.yml ํŒŒ์ผ ๋ณ€๊ฒฝ (theme ๋ณ€๊ฒฝ ์‹œ์—๋งŒ)
comments:
  provider: "utterances"
  utterances:
    theme: "github-light" # "github-dark"
    issue_term: "pathname" # pathname์€ post์˜ markdown ํŒŒ์ผ ์ด๋ฆ„์œผ๋กœ ์—ฐ๊ฒฐ๋จ
  1. _includes/comments-providers/utterances.html ํŒŒ์ผ ์ž‘์„ฑ
# ๋ณธ์ธ ๊นƒํ—ˆ๋ธŒ ์•„์ด๋””์™€ ์ƒ์„ฑํ•œ ๋ ˆํŒŒ์ง€ํ† ๋ฆฌ ์ž…๋ ฅ
script.setAttribute('repo', 'github-account/repository-name');
# ์„ ํƒํ•œ ๊นƒํ—ˆ๋ธŒ ํ…Œ๋งˆ ์ž…๋ ฅ
script.setAttribute('theme', '{{ site.comments.utterances.theme | default: "github-light" }}');

โ–ช Google Analytics ์—ฐ๊ฒฐ

https://analytics.google.com/analytics/web/์—์„œ ์ ‘์†ํ•˜์—ฌ ์—ฐ๊ฒฐ

# Analytics
analytics:
  provider: "google-gtag"
  # false (default), "google", "google-universal", "google-gtag", "custom"
  google:
    tracking_id: "your tracking id here" # ๋ณธ์ธ์˜ tracking id ์ž…๋ ฅ
    anonymize_ip: # true, false (default)

โ–ช Goolge Search Console ์—ฐ๊ฒฐ

๊ตฌ๊ธ€์— ๋‚ด ๊ฒŒ์‹œ๋ฌผ์ด ๋ณด์ด๊ฒŒ ํ•˜๋ ค๋ฉด search console๊ณผ ์—ฐ๊ฒฐ์ด ํ•„์š” https://search.google.com/search-console/about์—์„œ ์ ‘์†ํ•˜์—ฌ ๋„๋ฉ”์ธ ๋“ฑ๋ก

  1. ๋„๋ฉ”์ธ ๋“ฑ๋ก ์‹œ ๊ตฌ๊ธ€์—์„œ ์ œ๊ณตํ•˜๋Š” google~~.html ํŒŒ์ผ ๋ฃจํŠธ ๋””๋ ‰ํ† ๋ฆฌ์— ์—…๋กœ๋“œ
  2. jekyll-sitemap ํ”Œ๋Ÿฌ๊ทธ์ธ ์„ค์น˜ (๊ตฌ๊ธ€๋ง ์ถ”์ฒœ)
sudo gem install jekyll-sitemap
  1. _config.yml ํŒŒ์ผ์— plugins์— jekyll-sitemap ์—†์œผ๋ฉด ์ถ”๊ฐ€
# Plugins (previously gems:)
plugins:
  - jekyll-sitemap
  1. ๋ฃจํŠธ ๋””๋ ‰ํ† ๋ฆฌ์— robots.txt ์ƒ์„ฑ
User-agent: *
Allow: /

Sitemap: https://github-account.github.io/sitemap.xml

โ–ช ๋„ค์ด๋ฒ„ ๊ฒ€์ƒ‰ ๋“ฑ๋ก (์„œ์น˜์–ด๋“œ๋ฐ”์ด์ €)

https://searchadvisor.naver.com/์— ์ ‘์†ํ•˜์—ฌ ์‚ฌ์ดํŠธ ๋“ฑ๋ก
๋ฃจํŠธ ๋””๋ ‰ํ† ๋ฆฌ์— naver~~~~.html ์ถ”๊ฐ€

โ–ช ํฐํŠธ ๋ณ€๊ฒฝ

  1. assets/css/main.scss์— import๋‚˜ font-face ๋ฐฉ์‹ ์ค‘ ์„ ํƒํ•˜์—ฌ ํฐํŠธ ์ถ”๊ฐ€
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

@font-face {
  font-family: "RIDIBatang";
  font-weight: normal;
  src: url(/assets/css/fonts/RIDIBatang.otf);
}
  1. _sass/minimal-mistakes/_variables.scss์—์„œ ํฐํŠธ ์„ค์ •
$serif: Georgia, Times, serif !default;
$sans-serif: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
  "Montserrat", "Pretendard", "Merriweather", sans-serif !default;
$monospace: "Fira Mono", "Pretendard", Monaco, Consolas, "Lucida Console",
  monospace !default;

โ–ช About ํŽ˜์ด์ง€ ์ž‘์„ฑ

์ƒ๋‹จ ๋„ค๋น„๊ฒŒ์ด์…˜์˜ About ํƒญ์€ _pages/about.md๋กœ ์—ฐ๊ฒฐ. ํ•ด๋‹น ํŒŒ์ผ์— ๋‚ด์šฉ ์ž‘์„ฑ

---
title: "Hi all! I'm OOOOOO๐Ÿ‘‹๐Ÿป"
permalink: /about/
layout: single
comments: false
---

๋ณธ์ธ ์†Œ๊ฐœ ์—ฌ๊ธฐ์— ์ž…๋ ฅ

๋ฌธ์˜์‚ฌํ•ญ ๋˜๋Š” ์ˆ˜์ • ์š”์ฒญ์€ ๋ธ”๋กœ๊ทธ์— ๋Œ“๊ธ€ ๋‚จ๊ฒจ์ฃผ์‹œ๊ฑฐ๋‚˜ ์ด๋ฉ”์ผ๋กœ ์—ฐ๋ฝ์ฃผ์„ธ์š”!


๊ฐœ๋ฐœ ๊ธฐ๋ก

[VER1.0] choiiis github blog main

[VER2.0] choiiis github blog main

[VER2.1] choiiis github blog main