2017-10-07 1 views
1

구현하려고합니다. related_posts-jekyll_plugin jekyll 블로그의 게시 태그를 기반으로 관련 게시물을 표시하는 플러그인입니다. jekyll 서버를 실행할 때 다음 오류가 발생했습니다. 어떻게 해결할 수 있습니까? related_posts.rb 또는 종속성 중 하나가 설치되어 있지 않습니다.

$ jekyll serve

don't have related_posts.rb or one of its dependencies installed error

Configuration file: D:/git/blog/_config.yml 
    Dependency Error: Yikes! It looks like you don't have D:/git/blog/_plugins/related_posts.rb or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- jekyll/post' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/! 
jekyll 3.6.0 | Error: D:/git/blog/_plugins/related_posts.rb 

내 _config.yml 파일 내용 다음이 포함되어 있습니다.

title: Kiran's blog | Kiran Shahi is a .NET developer from Nepal 
email: [email protected] 
description: > # this means to ignore newlines until "baseurl:" 
    Welcome to kiran's blog. Kiran Shahi is a .NET guy. He is passionate about technology. 
baseurl: "/blog" # the subpath of your site, e.g. /blog 
url: "" # the base hostname & protocol for your site, e.g. http://example.com 
twitter_username: itskirans 
github_username: kiranshahi 
future: true 

paginate: 5 


# Build settings 
markdown: kramdown 
gems: 
    - jekyll-feed 
    - jekyll-paginate 
exclude: 
    - Gemfile 
- Gemfile.lock 
+0

코드, 오류, 샘플 데이터 또는 텍스트 출력을 일반 텍스트로 게시하십시오. 읽기 어려울 수있는 이미지가 아닌 코드를 테스트하거나 답변에 사용하기 위해 붙여 넣을 수 없으며 적대적입니다. 스크린 리더를 사용하는 사람들. 질문을 편집하여 질문의 본문에 코드를 추가 할 수 있습니다. '{}'버튼을 사용하여 코드 블록을 포맷하거나 동일한 효과를 위해 4 개의 들여 쓰기를들 수 있습니다. 스크린 샷을 코드로 실행할 수 없습니다. – tadman

+0

@ tadman 나는 텍스트뿐만 아니라 이미지를 언급하는 오류가있다. –

+0

해당 스크린 샷의 텍스트가 보이지 않을 수도 있습니다. 매우 작습니다. – tadman

답변

0

설정 파일이 보이지 않지만 설정 파일의 보석 목록에 related_posts.rb가있는 것 같습니다. 이 플러그인은 보석이 아니라 단지 플러그인 파일이므로 거기에 나열 할 필요는 없습니다. 해당 섹션에서 제거하십시오.

+0

_config.yml 파일에 모든 코드를 게시 할 수 없으므로. 나는 그것에 대해 언급했다. –

+0

좋아, 그 플러그인을 살펴 봤는데 아주 오래된 것 같아 지메일의 최신 버전에서는 작동하지 않는다. 이 플러그인을 사용하고 있습니까? https://github.com/lawrencewoodman/related_posts-jekyll_plugin? 그렇다면이 포크가 최신 버전 인 것 같습니다 - https://github.com/SimonBackx/related_posts-jekyll_plugin –

+0

예이 플러그인을 사용하고 있습니다. –

관련 문제