{%- capture site_tags -%}
{%- for tag in site.tags -%}
{{- tag | first -}}{%- unless forloop.last -%},{%- endunless -%}
{%- endfor -%}
{%- endcapture -%}
{%- assign tags_list = site_tags | split:’,’ | sort -%}

{%- for tag in tags_list -%}
 {{- tag -}} ({{site.tags[tag].size}})
{%- endfor -%}

{%- for tag in tags_list -%}


 {{- tag -}} ({{site.tags[tag].size}})

{%- for post in site.tags[tag] -%}

{{- post.title -}}

{%- endfor -%}

{%- endfor -%}

Leave a Reply

Your email address will not be published.