{%- assign tags = blank -%} {%- for post in site.posts -%} {%- assign post_tags = post.tags | join:'|' | append:'|' -%} {%- if post_tags != '|' -%} {%- assign tags = tags | append:post_tags -%} {%- endif -%} {%- endfor -%} {%- assign tags = tags | split:'|' | uniq | sort -%} {% for tag in tags %}