bwillis / jekyll-github-sample

:bookmark_tabs: Get a sample of a Github public repo file
59 stars 18 forks source link

not working, Liquid syntax error #12

Open breuerfelix opened 6 years ago

breuerfelix commented 6 years ago

this plugin is freaking amazing cause I can update my page automatically when I update my project readme. saving a lot of time to not update things in 2 different places.

anyways I get an error: Liquid Exception: Liquid syntax error (line 1): Unknown tag 'github_sample' in projects/king-bot/index.md

I installed the gem, and added it to the plugins (btw. change that in your documentation please :) )

tried to bundle exec Jekyll serve but no luck at all

implemented like: {% github_sample scriptworld-git/king-bot/blob/master/README.md 5 %}

also tried: {%- github_sample scriptworld-git/king-bot/blob/master/README.md 5 -%}

and even full path: {% github_sample https://github.com/scriptworld-git/king-bot/blob/master/README.md 5 %}

hpmartini commented 4 years ago

I had the same problem with Jekyll 4.0.0

It worked after I put jekyll_github_sample under the plugins section

plugins:
  - jekyll_github_sample

@bwillis would be great if you'd update your readme.

Thanks for the plugin anyway!