--- layout: page title: Categories tagline: Check posts by category sort: date #permalink: /pages/private/blog/navigator/archive/categoryview/ skip_words: [ posts, public, private, premium ] noindex: true resource_options: - masthead: opacity: 0.5 slides: - url: /assets/images/master_header/chuttersnap-1280x800.png alt: chuttersnap-1200x800 regenerate: false --- {% comment %} Debugging|Helpers -------------------------------------------------------------------------------- {% endcomment %} {% comment %} site_category_word_list: {{ site_category_word_list | debug }} {% endcomment %} {% comment %} Liquid procedures -------------------------------------------------------------------------------- {% endcomment %} {% capture get_page_path %}themes/{{site.template.name}}/procedures/global/get_page_path.proc{% endcapture %} {% capture select_icon_size %}themes/{{site.template.name}}/procedures/global/select_icon_size.proc{% endcapture %} {% capture get_category_item %}themes/{{site.template.name}}/procedures/global/get_category_item.proc{% endcapture %} {% capture create_word_cloud %}themes/{{site.template.name}}/procedures/global/create_word_cloud.proc{% endcapture %} {% comment %} Variables -------------------------------------------------------------------------------- {% endcomment %} {% assign view_config = site.data.builder.blog_navigator.category_view %} {% assign view_description = view_config.description %} {% if site.permalink == 'none' %} {% capture browser_page_url %}{{ page.url }}.html{% endcapture %} {% else %} {% capture browser_page_url %}{{ page.url }}{% endcapture %} {% endif %} {% include {{get_page_path}} mode='absolute' %} {% assign navigator_path = page_path | remove_first:'archive' %} {% capture navigator %}{{navigator_path}}{% endcapture %} {% capture date_view %}{{page_path}}/dateview/{% endcapture %} {% capture category_view %}{{page_path}}/categoryview/{% endcapture %} {% capture tag_view %}{{page_path}}/tagview/{% endcapture %} {% capture all_view %}{{page_path}}/{% endcapture %} {% if page.sort == 'title' %} {% assign sorted_posts = site.posts | sort: 'title' %} {% elsif page.sort == 'date' %} {% assign sorted_posts = site.posts | sort: 'date' %} {% else %} {% assign sorted_posts = site.posts | sort: 'date' %} {% endif %} {% comment %} TODO: skip_words configured by yaml data file? -------------------------------------------------------------------------------- {% endcomment %} {% capture site_category_word_list %}{% for tag in site.categories %}{{ tag | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %} {% assign categories = site_category_word_list | split:',' %} {% for category in categories %} {% if page.skip_words contains category %} {% continue %} {% endif %} {% capture category_list %}{{ category_list | append: category }}{% unless forloop.last %},{% endunless %}{% endcapture %} {% endfor %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %} {% include {{create_word_cloud}} word_list=category_list source="categories" skip_words=skip_words %}
{{ excerpt }}