Fork me on GitHub

Annotater with Jekyll

just include a file called page-annotater.html in _includes. It should look like this

{% if page.annotater %} <script>

{% for anno in page.annotater %}
    annotater({
    {% for notation in anno %}
        {{notation[0]}}: "{{ notation[1] }}",
    {% endfor %}
    });
{% endfor %}

</script> {% endif %}

now, in your yaml-front-matter you can do this

---
title: my annotated page
annotater:
  -
    name: curl
    tooltip: "a nice command line utility for fetching the content at a url"
---