less than 1 minute read

2022.04.30

Github Posting

상단 Category와 Tag설정 방법

📂_Pages 폴더 에서 📜 category-archive.md 파일을 생성한다.

  다음과 같이 📜 category-archive.md를 생성하면 된다.
  ---
  title: "Category"
  layout: categories
  permalink: /categories/
  author_profile: true
  sidebar_main: true
  ---

📂_Pages 폴더 에서 📜 tag-archive.md 파일을 생성한다.

  다음과 같이 📜 category-archive.md를 생성하면 된다.
  ---
  title: "Tag"
  layout: tags
  permalink: /tags/
  author_profile: true
  sidebar_main: true
  ---

그 다음으로는 📂_data 에서 📜 navigation.yml 파일 으로 들어가서 다음과 같이 바꾸어준다.

  # main links
main:
  - title: "Home"
    url: https://Hoonikim.github.io/
  - title: "Category"
    url: /categories/
  - title: "About"
    url: https://github.com/Hoonikim
  - title: "Tag"
    url: /tags/
  

카테고리에 Post 하기

그 이후로는

📂_posts 에서 **📜 [만들 파일].md ** 으로 들어가서 상단에 다음을 입력해주면 끝이다.

  ---
  layout: single
  title: "[Github blog] Day 2"
  categories: Github
  tag: [Github, blog]
  toc: true # toc을 활성화 하고싶다면 다음과 깉이 입력
  ---

다음 공부할 내용

  카테고리에 정리하는 방법을 알기는 했지만 좌측 사이드바에 카테고리 항목을 설정하는 방법에대해 다시 알아볼 계획이다. 

Comments