Sha256: 1d7154721494a22d1b0f7535c246ef8f672a52a01b4553234e7d20a25c2a0db7

Contents?: true

Size: 1.41 KB

Versions: 2

Compression:

Stored size: 1.41 KB

Contents

{% capture workspace %}
  {% capture color %}{{ page.color | default: site.color }}{% endcapture %}

  {% capture name %}{{ include.name | default: "TAG" }}{% endcapture %}
  {% assign count = include.count | default: 0 %}

  {% capture href %}{{ "/tags/" | append: name | relative_url }}{% endcapture %}

  {% assign zoom = include.zoom | default: false %}

  {% if zoom %}
    {% assign textClass = "text-2xl text-color-50 text-opacity-75 " | replace: "color", color  %}
    {% assign svgClass = "h-8 w-8" %}
    {% assign countClass = "text-color-50 text-opacity-50" | replace: "color", color %}
  {% else %}
    {% assign textClass = "text-sm text-color-500 text-opacity-75" | replace: "color", color  %}
    {% assign svgClass = "h-4 w-4" %}
    {% assign countClass = "text-color-500 text-opacity-50" | replace: "color", color %}
  {% endif %}

{% endcapture %}

<a class="mx-px {{ textClass }} flex items-center" href="{{ href }}">
  <svg xmlns="http://www.w3.org/2000/svg" class="inline-block {{ svgClass }}" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z" /></svg>
  <span class="inline-block p-1">{{ name }}</span>
  {% if count > 0 %}
  <span class="inline-block p-1 {{ countClass }}">{{ count }}</span>
  {% endif %}
</a>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jekyll-theme-acg-1.0.6 _includes/item-tag.html
jekyll-theme-acg-1.0.5 _includes/item-tag.html