Closed xplosionmind closed 3 years ago
Hi Tommi! As the error message and the first line of the stack trace show, something is going wrong on the 7th line of the /_plugins/bidirectional_links_generator.rb
file in your garden.
This is the line:
As you can see, on this line there's a call to the docs
function, but it fails as described by the error message:
NoMethodError: undefined method `docs' for nil:NilClass
This means that whatever docs
was called on, in this case site.collections['notes']
, is nil
(is nothing), so the call fails.
This is likely because you do not have a notes
collection in your site. To resolve this, add the following lines to your _config.yml
file:
Then, create a _notes/
directory at the root of your project (/Users/xplosionmind/tommi.space/_notes/
), and add your Markdown notes in there.
I'll close this as it's not an issue with the template itself, but we can continue discussing here. Let me know if this helps!
If I copy-paste the
_plugins
folder in my already existing Jekyll website, I get this error message after enteringbundle exec jekyll serve --trace --watch
:It appears as a Jekyll problem, since it seems like Ruby can't find the Jekyll Gem, but after removing
_plugins
, everything gets back to normal.What have I done wrong?
Thanks a lot. T