[Github] Blog 만들기 #9

lilclown·2022년 6월 17일

Github

목록 보기
9/10
post-thumbnail

Youtube

1. EP10. 블로그 내 글 검색기능 추가하기




1. navigarion.yml Code 추가

  • Code
docs:
  - title: "GitHub"
    children:
      - title: "Blog"
        url: "https://lilclown97.github.io/categories/#github-blog"

2. _config.yml Code 추가

  • Code
defaults:
  # _posts
  - scope:
      path: ""
      type: posts
    values:
      layout: single
      author_profile: true
      read_time: true
      comments: true
      share: true
      related: true
      show_date: true
      toc: true
      toc_sticky: true
      sidebar:              #add
        nav: "docs"         #add




블로그 내 글 검색 기능

1. _pages 폴더에 파일 생성

  • search.md
---
title: Search
layout: search
permalink: /search/
---

2. navigation.yml Code 추가

  • Code
main:
  - title: "Home"
    url: "https://lilclown97.github.io/"
  - title: "Category"
    url: /categories/
  - title: "Search"                         #add
    url: /search/                           #add
profile
Tomorrow better than today, Laugh at myself

0개의 댓글