module Jekyll
Zybooks Link Plugin
The following plugin creates a liquid tag that links to the most recent zybooks for the course it needs to have the zybook in the _config.yml file for it successfully link for students.
example usage {% zybook chapter:x section:x %}{% endzybook %}
For example: {% zybook chapter:13 section:2 %}Loops{%endzybook%}
would create the following link (assuming Summer Book) <a href=“https://learn.zybooks.com/zybook/COLOSTATECS1634Summer2020/chapter/13/section/2” target=“_blank”>Loops</a>
All arguments are OPTIONAL the defaults are follows chapter = nothing section = 1 (if chapter is specified) resource_id = nothing So just putting in {% zybook %} would link to the TOC of your zybook.