Sha256: 09e4be4f8a1f80b30cf86f3f74b6f4d55304954863e0e7a58c48212a1a5499b9

Contents?: true

Size: 486 Bytes

Versions: 7

Compression:

Stored size: 486 Bytes

Contents

{% comment %}
  
  Usage: (where 'status' in 'page.status' is a yml list of strings)
    {% include btn_state.html states=page.status %}

  Parameters:
    * states         (array) - a page's status which maps to a state document.

{% endcomment %}

{% for stat_tag in include.states %}
  {% assign state = site.states | find_exp: "item", "item.emoji == stat_tag" %}
  <a class="stat-tag" href="{{ state.url | relative_url }}" title={{ state.title }}>{{ state.emoji }}</a>
{% endfor %}

Version data entries

7 entries across 7 versions & 3 rubygems

Version Path
jekyll-garden-0.0.12 _includes/btn_state.html
jekyll-wikibonsai-0.0.11 _includes/btn_state.html
jekyll-wikibonsai-0.0.10 _includes/btn_state.html
jekyll-bonsai-0.0.7 _includes/btn_state.html
jekyll-bonsai-0.0.6 _includes/btn_state.html
jekyll-bonsai-0.0.5 _includes/btn_state.html
jekyll-bonsai-0.0.4 _includes/btn_state.html