Jekyll: The following destination is shared by multiple files.

자기개발자·2022년 4월 17일
0

github blog에서 여러 category에 .md 파일들을 _posts 디렉토리 안에 전부 넣으면 관리하기가 힘들다.

이를 위한 방법으로, 블로그 루트 path에 카테고리 이름으로 디렉토리를 만들고 (ex. ’Django’)

이 디렉토리 안에 _posts 디렉토리를 만들고 포스팅하려는 .md 파일을 넣어주어도 된다.

근데 그러고나서 .md 파일의 상단에 포스트 정보를 작성할 때 아래와 같이 작성하면

categories: [django]

아래와 같은 경고가 발생한다.

Conflict: The following destination is shared by multiple files.
The written file may end up with unexpected contents.
/Users/jeongjaeho/Downloads/gitblog/_site/categories/django/index.html
- categories/django/index.html
- categories/django/index.html

그리고 들어가보면 django 카테고리 안에 Django 카테고리가 중첩으로 들어가있는 형태가 된다.

즉, 카테고리 이름은 case-sensitive이기 때문에 대문자로 디렉토리 이름을 지정했다면, .md 파일에도 똑같이 대문자로 넣어야한다.

profile
Self Refiner

0개의 댓글