Sha256: c5dfa3fb4e74c6610528d3a4d4c9d4756d5a620e0e676340be678c339224160f
Contents?: true
Size: 1.05 KB
Versions: 30
Compression:
Stored size: 1.05 KB
Contents
{%- comment -%} This file adds a link to the glossary page with optional mouseover, if an expansion of the abbreviation can be found in data/glossary.yml. Note the excessive use of whitespace hiding! {%- endcomment -%} {%- unless include.text -%} {%- assign display_string = include.entry -%} {%- else -%} {%- assign display_string = include.text -%} {%- endunless %} {%- assign mouseover = "" -%} {%- for gl_entry in site.data.glossary -%} {%- if gl_entry.entry == include.entry -%} {%- capture mouseover %}{{ gl_entry.title }} -- {{ gl_entry.description }}{% endcapture -%} {%- endif -%} {%- endfor -%} {%- comment -%} If we don't have matching abbriviation, try the full title! {%- endcomment -%} {%- if mouseover == "" -%} {%- for gl_entry in site.data.glossary -%} {%- if gl_entry.title == include.entry -%} {%- capture mouseover %}{{ gl_entry.description }}{% endcapture -%} {%- endif -%} {%- endfor -%} {% endif -%} <span class="glossary_entry" title="{{ mouseover }}">[{{ display_string }}]({% link glossary.md %})</span>{{- -}}
Version data entries
30 entries across 30 versions & 1 rubygems