Sha256: a122f36beea5e5ebb2c496bd1ada09a888aca308a09d50caca0d6ee73850d118
Contents?: true
Size: 1.33 KB
Versions: 1
Compression:
Stored size: 1.33 KB
Contents
--- layout: page --- {{ content }} <!-- See https://blog.lanyonm.org/articles/2013/11/21/alphabetize-jekyll-page-tags-pure-liquid.html --> <!-- With added pipe to handle lack of sort_natural --> {% capture site_tags %}{% for tag in site.tags %}{{ tag | first | downcase }}|{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %} <!-- site_tags: {{ site_tags }} --> {% assign tag_words = site_tags | split:',' | sort %} <!-- tag_words: {{ tag_words }} --> <div id="tags-page"> <div class="tags-list"> {% for tag_pair in tag_words %} {% assign tag = tag_pair | split:'|' | last %} {% if page.tags %} {% unless page.tags contains tag %} {% continue %} {% endunless %} {% endif %} <a href="#{{ tag | slugify }}" class="tag-link"> <span class="tag-name">{{ tag }}</span> <span class="tag-count">{{ site.tags[tag] | size }}</span> </a> {% endfor %} </div> <hr/> <div class="posts-by-tag"> {% for tag_pair in tag_words %} {% assign tag = tag_pair | split:'|' | last %} <div id="{{ tag | slugify }}" class="posts-for-tag"> <h1>{{ tag }}</h1> <div class="posts-list"> {% for post in site.tags[tag] %} {% include post-list-entry.html post=post %} {% endfor %} </div> </div> {% endfor %} </div> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-theme-harveynick-lagrange-3.0.3 | _layouts/tags.html |