erikw / jekyll-glossary_tooltip

Jekyll plugin providing a glossary liquid tag that will show a tooltip of a term definition.
https://erikw.github.io/jekyll-glossary_tooltip/
MIT License
26 stars 1 forks source link

[Feature Request] Tag to include all glossary terms #6

Closed badosu closed 1 year ago

badosu commented 1 year ago

It would be nice if it was possible to include all glossary terms into a page (with their source links) for reference. In particular this would benefit projects with very specific terminology that require a Glossary page.

badosu commented 1 year ago

Ok, it's relatively trivial to do this with the plugin for liquify filter.

erikw commented 1 year ago

This is a good idea!

How do you mean with liquify filter?

badosu commented 1 year ago

https://github.com/gemfarmer/jekyll-liquify and something like:

<dl>
{% for item in ordered_items %}
  <dt><a href="{{item.url | liquify}}" target="_blank">{{item.term}}</a></dt>
  <dd>{{item.definition}}</dd>
{% endfor %}
</dl>