Sha256: 51cf7ee1d300cdac28f19f8a32338caabc609f6955a86895beaccffa5dd2022a

Contents?: true

Size: 1.04 KB

Versions: 4

Compression:

Stored size: 1.04 KB

Contents

<!doctype html>
<html lang="en">
  {% include header.html -%}
  <body>
    {%- assign url = page.url | split: '/' -%}
    {%- assign tag = url.last -%}
    {%- for t in site.tags -%}
      {%- if t[0] != tag -%}
        {%- continue -%}
      {%- endif -%}
      {%- assign posts = t[1] -%}
      {%- break -%}
    {%- endfor -%}

    {% include logo.html image=site.acn.logo.alt_image size=site.acn.logo.alt_size title=tag href='/hashtags' -%}
    {%- if posts.size -%}
      {% include grid.html posts=posts %}
    {%- else -%}
      {%- capture site_tags -%}
        {% for tag in site.tags %}{{ tag[0] }}{% unless forloop.last %},{% endunless %}{% endfor -%}
      {% endcapture -%}
      {% assign tags_list = site_tags | split: ',' | sort_natural -%}
      <article class="tiles">
        <ul>
          {%- for item in tags_list -%}
            <li><a href="/hashtags/{{ item }}">{{ item }}<sup>{{ site.tags[item].size }}</sup></a></li>
          {%- endfor -%}
        </ul>
      </article>
    {%- endif -%}
    {%- include footer.html %}
  </body>
</html>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
askclass-news-theme-0.6.0 _layouts/hashtag.html
askclass-news-theme-0.5.0 _layouts/hashtag.html
askclass-news-theme-0.4.3 _layouts/hashtag.html
askclass-news-theme-0.4.2 _layouts/hashtag.html