Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. <!-- Line 1 above will get the tag name for every tag on the site and set them to the site_tags variable. Each tag object contains both the tag name and a list of the associated posts. This capture statement is all on one line so that the commas can reliably be used as delimiters. Line 2 creates the tag_words variable that is a sorted array of the tag names. -->
  2.  
  3. {% capture site_tags %}
  4. {% for tag in site.tags %}
  5. {{ tag | first }}
  6. {% unless forloop.last %},{% endunless %}
  7. {% endfor %}
  8. {% endcapture %}
  9. {% assign tag_words = site_tags | split:',' | sort %}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement