--- blog_number: topic title: Posts by Topic options: - skip_card_metadata - skip_autogen_sidebar layout: Layout_Philosophy_Blog ---
{% assign blog_posts = site.Philosophy | where_exp:"ipost", "ipost.tags != empty" | where_exp:"ipost", "ipost.tags != blank" %} {% assign each_tag_used = "" %} {% for philo_post in blog_posts %} {% assign post_tags = philo_post.tags | join:'|' | append:'|' %} {% assign each_tag_used = each_tag_used | append:post_tags %} {% endfor %} {% assign each_tag_used = each_tag_used | split:'|' | sort %} {% assign tag_list = "" %} {% for tag in each_tag_used %} {% if tag != "" %} {% if tag_list == "" %} {% assign tag_list = tag | split:'|' %} {% endif %} {% unless tag_list contains tag %} {% assign tag_list = tag_list | join:'|' | append:'|' | append:tag | split:'|' %} {% endunless %} {% endif %} {% endfor %} {% assign counter = 1 %} {% for tag in tag_list %} {% endfor %} {% for tag in tag_list %}
{{ tag }}
{% for philo_post in blog_posts %} {% if philo_post.tags contains tag %} {% include generate_post_reference.html post_to_gen=philo_post gen_color="purple" %} {% endif %} {% endfor %}
{% endfor %}
{%- comment %} {% endcomment %}