You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like this should be reading the js key from the webmentions key in the _config.yml. But this doesn't appear to be documented anywhere in the readme/etc.
Having a look at the options we have, it would seem like destination would be better repurposed for this, and then control whether it is a 'source destination' or 'built site' destination based on the deploy key?
Actually.. reading those example snippets closer I see how to use it properly now, and re-reading the introductory text, i realise webmentions.js is a config path rather than a javascript file.. my bad.
So.. it's a config error on my part, but perhaps including a better check/default values/error message around this would make it more user friendly.
The text was updated successfully, but these errors were encountered:
________________________________
From: Aaron Gustafson <[email protected]>
Sent: Monday, July 24, 2017 10:03:10 PM
To: aarongustafson/jekyll-webmention_io
Cc: alias1; Author
Subject: Re: [aarongustafson/jekyll-webmention_io] [2.6.0] NoMethodError: undefined method `[]' for nil:NilClass (#46)
I'm on vacation this week and don't have anything with me except my phone. I can take a look next week.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#46 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAuA4yCWH8uAGYGVszmthBW00Zhc3kp4ks5sRIftgaJpZM4OgFAr>.
The line in question is
Jekyll::WebmentionIO::config['js']['destination'] || '/js/'
The related line in my version was
@site.config['jekyll-webmention-io']['js'] || "/assets/js/"
Related to #41 / #44
Looks like this should be reading the
js
key from thewebmentions
key in the_config.yml
. But this doesn't appear to be documented anywhere in the readme/etc.Having a look at the options we have, it would seem like
destination
would be better repurposed for this, and then control whether it is a 'source destination' or 'built site' destination based on thedeploy
key?Actually.. reading those example snippets closer I see how to use it properly now, and re-reading the introductory text, i realise
webmentions.js
is a config path rather than a javascript file.. my bad.So.. it's a config error on my part, but perhaps including a better check/default values/error message around this would make it more user friendly.
The text was updated successfully, but these errors were encountered: