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
After fighting with the plugin for a bit, I finally managed to make it work the way I wanted.
I believe the docs are un-clear and the experience could be improved when getting started, especially for non-ruby dev who can't really make sense of the errors...
The docs lead me to believe I didn't need anything in my config file, as long as I kept the default layout filename, didn't want slug or anything else. That wasn't the case, I got undefined method until I added that.
I then got a gsub method missing error because I tried to use the actual name of the category to test things instead of passing a variable to generate the link, that wouldn't work.
So if anyone is getting stuck too, here's what my config file looks like 👍
And this is how I display the links for all of my categories 👍
<ul class="sidebar-categories">
{% for cat in site.categories %}
<li>{% categorylink cat[0] %}This is a link to foo{% endcategorylink %}</li>
{% endfor %}
</ul>
Hope this helps and when someone has some time to make the readme clearer, it'd probably be nice too.
Thanks for the work either way, I'm glad I managed to make it work after all !
The text was updated successfully, but these errors were encountered:
Thanks for feedback. I will update documentation as you suggested.
(sorry for late response - I couldn't manage to have time to review this last six months:< )
After fighting with the plugin for a bit, I finally managed to make it work the way I wanted.
I believe the docs are un-clear and the experience could be improved when getting started, especially for non-ruby dev who can't really make sense of the errors...
The docs lead me to believe I didn't need anything in my config file, as long as I kept the default layout filename, didn't want slug or anything else. That wasn't the case, I got undefined method until I added that.
I then got a gsub method missing error because I tried to use the actual name of the category to test things instead of passing a variable to generate the link, that wouldn't work.
So if anyone is getting stuck too, here's what my config file looks like 👍
And this is how I display the links for all of my categories 👍
Hope this helps and when someone has some time to make the readme clearer, it'd probably be nice too.
Thanks for the work either way, I'm glad I managed to make it work after all !
The text was updated successfully, but these errors were encountered: